CVE-2026-33671
Received Received - Intake
Regular Expression DoS in Picomatch Glob Matcher Causes CPU Exhaustion

Publication date: 2026-03-26

Last updated on: 2026-04-01

Assigner: GitHub, Inc.

Description
Picomatch is a glob matcher written JavaScript. Versions prior to 4.0.4, 3.0.2, and 2.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) when processing crafted extglob patterns. Certain patterns using extglob quantifiers such as `+()` and `*()`, especially when combined with overlapping alternatives or nested extglobs, are compiled into regular expressions that can exhibit catastrophic backtracking on non-matching input. Applications are impacted when they allow untrusted users to supply glob patterns that are passed to `picomatch` for compilation or matching. In those cases, an attacker can cause excessive CPU consumption and block the Node.js event loop, resulting in a denial of service. Applications that only use trusted, developer-controlled glob patterns are much less likely to be exposed in a security-relevant way. This issue is fixed in picomatch 4.0.4, 3.0.2 and 2.3.2. Users should upgrade to one of these versions or later, depending on their supported release line. If upgrading is not immediately possible, avoid passing untrusted glob patterns to `picomatch`. Possible mitigations include disabling extglob support for untrusted patterns by using `noextglob: true`, rejecting or sanitizing patterns containing nested extglobs or extglob quantifiers such as `+()` and `*()`, enforcing strict allowlists for accepted pattern syntax, running matching in an isolated worker or separate process with time and resource limits, and applying application-level request throttling and input validation for any endpoint that accepts glob patterns.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-26
Last Modified
2026-04-01
Generated
2026-05-07
AI Q&A
2026-03-27
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
jonschlinkert picomatch to 2.3.2 (exc)
jonschlinkert picomatch From 3.0.0 (inc) to 3.0.2 (exc)
jonschlinkert picomatch From 4.0.0 (inc) to 4.0.4 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1333 The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability affects the Picomatch JavaScript library, which is used for matching glob patterns. Versions prior to 4.0.4, 3.0.2, and 2.3.2 are vulnerable to a Regular Expression Denial of Service (ReDoS) attack when processing specially crafted extglob patterns.

Certain extglob quantifiers like +() and *(), especially when combined with overlapping alternatives or nested extglobs, cause the library to compile regular expressions that can experience catastrophic backtracking on inputs that do not match. This leads to excessive CPU usage and blocks the Node.js event loop.

The vulnerability is exploitable when untrusted users can supply glob patterns that are passed to picomatch for compilation or matching. Applications using only trusted, developer-controlled patterns are less likely to be affected.


How can this vulnerability impact me? :

An attacker can exploit this vulnerability by providing crafted glob patterns that cause picomatch to consume excessive CPU resources. This results in blocking the Node.js event loop, effectively causing a denial of service (DoS) condition.

Applications that accept glob patterns from untrusted users are at risk of being made unresponsive or slowed down significantly, impacting availability and performance.

If the application only uses trusted, developer-controlled glob patterns, the risk is much lower.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability occurs when untrusted glob patterns containing certain extglob quantifiers such as `+()` and `*()` are processed by vulnerable versions of picomatch, leading to excessive CPU consumption and denial of service.

Detection involves identifying if your application uses picomatch versions prior to 4.0.4, 3.0.2, or 2.3.2 and whether it accepts untrusted glob patterns that include extglob quantifiers or nested extglobs.

Since no specific commands or network detection methods are provided, you can start by checking your package version with commands like `npm list picomatch` or `yarn list picomatch` to verify the installed version.

Additionally, monitoring CPU usage spikes or event loop blocking in Node.js applications when processing glob patterns may indicate exploitation attempts.


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include upgrading picomatch to version 4.0.4, 3.0.2, or 2.3.2 or later, depending on your supported release line.

  • Avoid passing untrusted glob patterns to picomatch.
  • Disable extglob support for untrusted patterns by using the `noextglob: true` option.
  • Reject or sanitize patterns containing nested extglobs or extglob quantifiers such as `+()` and `*()`.
  • Enforce strict allowlists for accepted pattern syntax.
  • Run matching in an isolated worker or separate process with time and resource limits.
  • Apply application-level request throttling and input validation for any endpoint that accepts glob patterns.

How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart