picomatch is vulnerable to Regular Expression Denial of Service (ReDoS)
87
CVE Score
High
Regular Expression Denial of Service (ReDoS)
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the extglob parser. analyzeRepeatedExtglob in lib/parse.js skips single-branch repeated extglob patterns such as +(*) or +(*a), which leads to exponential backtracking on short crafted strings. An attacker who controls a glob pattern can block the Node.js event loop.
There is no fix available yet; the latest release (4.0.7) is still affected. Until a patched version is released, do not pass untrusted input as a glob pattern to picomatch (directly or through libraries such as micromatch or tinyglobby). If untrusted patterns cannot be avoided, disable extglob parsing with the noextglob: true option or reject patterns containing extglob operators such as +(, *(, @(, ?( and !(.
You are affected if you are using a vulnerable version and pass untrusted input as a glob pattern to picomatch (directly or through a library such as micromatch or tinyglobby).
0.0.1 - 4.0.7
No fix availablepicomatch is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.0.1 - 4.0.7.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.