{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-102277","id":"CVE-2026-102277","title":"brace-expansion: Quadratic-time expansion of the `{a},b}` rewrite causes CPU denial of service","description":"The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.21, 2.1.7, 3.0.9, and 5.0.12, the expand function handles untrusted {a},b}-shaped patterns with many trailing closing braces by restarting its scan once for each trailing closing brace. The successive full-input rescans with linear working-string growth cause quadratic CPU time and memory pr","descriptionLong":"The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.21, 2.1.7, 3.0.9, and 5.0.12, the expand function handles untrusted {a},b}-shaped patterns with many trailing closing braces by restarting its scan once for each trailing closing brace. The successive full-input rescans with linear working-string growth cause quadratic CPU time and memory pressure that can block the Node.js event loop. The process eventually recovers, making the impact a recoverable CPU denial of service. This issue is fixed in versions 1.1.21, 2.1.7, 3.0.9, and 5.0.12.","published":"2026-09-28T20:54:46.160Z","updated":"2026-11-20T11:42:23.760306666Z","reserved":"2026-09-28T20:11:16.659Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["juliangruber brace-expansion"],"affectedProducts":[{"vendor":"juliangruber","product":"brace-expansion","defaultStatus":null,"versions":[{"version":">= 4.0.0, < 5.0.12","status":"affected"},{"version":">= 3.0.0, < 3.0.9","status":"affected"},{"version":">= 2.0.0, < 2.1.7","status":"affected"},{"version":"< 1.1.21","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"brace-expansion","purl":"pkg:npm/brace-expansion","ranges":[">=4.0.0 <5.0.12",">=3.0.0 <3.0.9",">=2.0.0 <2.1.7","<1.1.21"],"fixed":["5.0.12","3.0.9","2.1.7","1.1.21"],"advisory":"GHSA-q2hr-2g5m-vwhr"}],"cwes":["CWE-400","CWE-407"],"aliases":["GHSA-q2hr-2g5m-vwhr"],"references":[{"url":"https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-q2hr-2g5m-vwhr","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/33a5ef17b8d800bbfa8c52b14c39043b6aac1a96","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/bdff773f98e5988616b7039cc9b508df5d640b22","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/c55e67d8d8b1c56a2474afff15c2891166b2d364","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/ffdfa3e3806bed17c0874b8f1439b084de354a7e","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102277.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102277","tags":["advisory"]},{"url":"https://github.com/juliangruber/brace-expansion","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00428,"epssPercentile":0.37969,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-102277","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102277","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-102277","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-q2hr-2g5m-vwhr","ok":true,"note":"GHSA-q2hr-2g5m-vwhr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-102277","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}