Intel

AIKIDO-2026-928674

picomatch is vulnerable to Regular Expression Denial of Service (ReDoS)

CVE-2026-112366Published Oct 29, 2026
October 29, 2026

87

CVE Score

High

Regular Expression Denial of Service (ReDoS)

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

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 !(.

Who does this affect?

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).

Package

Versions

0.0.1 - 4.0.7

No fix available

Background info

picomatch is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.0.1 - 4.0.7.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea