Security mailing lists by PureSourceCode

CVE-2026-102277

MEDIUM 5.3CVSS 3.1

brace-expansion: Quadratic-time expansion of the `{a},b}` rewrite causes CPU denial of service

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
28 Sep 2026
Last modified
30 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-400CWE-407
Also known as
GHSA-q2hr-2g5m-vwhr
Sources
NVDJSONOSV GHSA-q2hr-2g5m-vwhrJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm brace-expansion >= 4.0.0, < 5.0.12 5.0.12
OSV npm brace-expansion >= 3.0.0, < 3.0.9 3.0.9
OSV npm brace-expansion >= 2.0.0, < 2.1.7 2.1.7
OSV npm brace-expansion < 1.1.21 1.1.21

References

History

  • 25 Nov 2026 21:21 UTC · NVD: first stored (published 28 Sep 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Sep 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.