Glob : `ignore` patterns lack the braceExpandMax limit applied to `pattern`
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| isaacsnode-glob | — | Not listed |
| npmglob |
< 14.0.6→ 14.0.6 |
14.0.6 |
Original description The description as published by the source.
Glob matches files using patterns the shell uses. From 13.0.5 until 14.0.6, the Ignore class in src/ignore.ts does not pass braceExpandMax to minimatch while using optimizationLevel: 2, so attacker-influenced ignore patterns can amplify into more globparts than the regular pattern path permits and cause quadratic work in secondPhasePreProcess(). Applications that accept untrusted ignore patterns can therefore experience disproportionate event-loop CPU consumption and denial of service. This issue is fixed in version 14.0.6.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com
- web github.com