{"id":"CVE-2025-5889","published":"2025-06-09T18:16:01Z","modified":"2025-06-11T10:39:58Z","title":"juliangruber brace-expansion index.js expand redos","vendor":"juliangruber","product":"brace-expansion","tier":"tail","description":{"text":"A vulnerability was found in juliangruber brace-expansion up to 1.1.11/2.0.1/3.0.0/4.0.0. It has been rated as problematic. Affected by this issue is the function expand of the file index.js. The manipulation leads to inefficient regular expression complexity. The attack may be launched remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 1.1.12, 2.0.2, 3.0.1 and 4.0.1 is able to address this issue. The name of the patch is a5b98a4f30d7813266b221435e1eaaf25a1b0ac5. It is recommended to upgrade the affected component.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.1,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00611,"percentile":0.50198,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://vuldb.com/?id.311660","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/?ctiid.311660","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/?submit.585717","tags":["third-party-advisory"]},{"url":"https://gist.github.com/mmmsssttt404/37a40ce7d6e5ca604858fe30814d9466","tags":["exploit"]},{"url":"https://github.com/juliangruber/brace-expansion/pull/65/commits/a5b98a4f30d7813266b221435e1eaaf25a1b0ac5","tags":["issue-tracking","patch"]},{"url":"https://github.com/juliangruber/brace-expansion/releases/tag/v4.0.1","tags":["patch"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":10.04},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":2.17}]},"vendorSlug":"juliangruber","affectedVersions":[{"vendor":"juliangruber","product":"brace-expansion","versions":["1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.1.9"]}],"fixedVersions":[{"vendor":"juliangruber","product":"brace-expansion","versions":["1.1.12","2.0.2","3.0.1","4.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-06-09T18:45:24.910231Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"brace-expansion","vulnerableRanges":[">=2.0.0, <2.0.2",">=1.0.0, <1.1.12",">=3.0.0, <3.0.1",">=4.0.0, <4.0.1"],"patched":["2.0.2","1.1.12","3.0.1","4.0.1"],"from":["GHSA-v6h2-p8h4-qcjw"],"provenance":"source"}],"summary":{"text":"The brace-expansion npm package, in its index.js file within the expand function, contains a regular expression complexity flaw that makes processing inefficient. An attacker can trigger it remotely with network access and low privileges, but the attack is considered hard to carry out and requires no user interaction, with its effect being resource exhaustion (availability impact).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:08Z"},"euvd":{"id":"EUVD-2025-17567","exploited":false,"provenance":"source"},"exploitRefs":["https://gist.github.com/mmmsssttt404/37a40ce7d6e5ca604858fe30814d9466"],"lineage":{"packageHistory":[{"cve":"CVE-2017-18077","published":"2018-01-27","fixed":"1.1.7","kev":false},{"cve":"CVE-2025-5889","published":"2025-06-09","fixed":"4.0.1","kev":false},{"cve":"CVE-2026-33750","published":"2026-03-27","fixed":"5.0.5","kev":false,"link":{"from":"CVE-2025-5889","to":"CVE-2026-33750","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"1.1.12","toFixed":"1.1.13","daysApart":291},{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"2.0.2","toFixed":"2.0.3","daysApart":291},{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/juliangruber/brace-expansion/commit/a5b98a4f30d7813266b221435e1eaaf25a1b0ac5","https://github.com/juliangruber/brace-expansion/commit/0b6a9781e18e9d2769bb2931f4856d1360243ed2","https://github.com/juliangruber/brace-expansion/commit/311ac0d54994158c0a384e286a7d6cbb17ee8ed5","https://github.com/juliangruber/brace-expansion/commit/7fd684f89fdde3549563d0a6522226a9189472a2"],"basis":"shared file"}]}},{"cve":"CVE-2026-45149","published":"2026-05-29","fixed":"5.0.6","kev":false},{"cve":"CVE-2026-13149","published":"2026-06-30","fixed":"5.0.7","kev":false}],"package":"npm:brace-expansion"}}