CVE-2026-102276 brace-expansion: DoS via uncontrolled recursion in parseCommaParts causing stack exhaustion
설명
The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.19, 2.1.5, 3.0.7, and 5.0.10, crafted brace patterns can exhaust the native stack in parseCommaParts because parseCommaParts recursively processes the remainder once per brace group and uses push.apply to pass every element of a very large comma-part array as a function argument. Patterns containing many comma-separated brace groups trigger the recursive path, while the large array triggers the argument-array path without deep recursion. These paths cause recursive and argument-array native stack exhaustion before max or maxLength can limit output, potentially terminating the Node.js process in a process-terminating denial of service. This issue is fixed in versions 1.1.19, 2.1.5, 3.0.7, and 5.0.10.
영향 받는 제품 제품 1개
-
해결 버전 있음
juliangruber
brace-expansion
영향 받는 버전
- 4.0.0 이상 5.0.10 미만
- 3.0.0 이상 3.0.7 미만
- 2.0.0 이상 2.1.5 미만
- 1.1.19 미만
해결 버전
- 5.0.10 이상
- 3.0.7 이상
- 2.1.5 이상
- 1.1.19 이상
참고 자료 5건
- github.com https://github.com/juliangruber/brace-expansion/commit/0bcbfc0a5928c3073d48f42999d1ce4fc1c42fbc (새 창)
- github.com https://github.com/juliangruber/brace-expansion/commit/316359e6019c39b3254c8ba8e25dc586a480652c (새 창)
- github.com https://github.com/juliangruber/brace-expansion/commit/5171e681c0922b7ae8bfaf9a331e309107be6edc (새 창)
- github.com https://github.com/juliangruber/brace-expansion/commit/6735c94873ca570bcdd6a0690033bdd3126379d3 (새 창)
- github.com https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-6j4f-fj2g-mc7p (새 창)