CVE-2026-33671: CWE-1333: Inefficient Regular Expression Complexity in micromatch picomatch
Picomatch versions prior to 4.0.4, 3.0.2, and 2.3.2 contain a Regular Expression Denial of Service (ReDoS) vulnerability due to inefficient handling of certain extglob patterns. Crafted patterns using quantifiers like +() and *(), especially with nested or overlapping extglobs, can cause catastrophic backtracking, leading to excessive CPU usage and blocking the Node.js event loop. This results in a denial of service condition when untrusted user input is processed.
AI Analysis
Technical Summary
Picomatch is a JavaScript glob matcher vulnerable to a Regular Expression Denial of Service (ReDoS) in versions before 4.0.4, 3.0.2, and 2.3.2. The issue arises when certain crafted extglob patterns with quantifiers such as +() and *(), particularly those with nested or overlapping alternatives, are compiled into regular expressions that cause catastrophic backtracking on non-matching input. This leads to excessive CPU consumption and blocks the Node.js event loop, causing denial of service. The vulnerability affects applications that accept untrusted glob patterns passed to picomatch. The issue has been addressed in the specified fixed versions. Mitigations include upgrading, disabling extglob for untrusted input, sanitizing patterns, enforcing allowlists, isolating matching in separate processes, and applying input validation and throttling.
Potential Impact
An attacker can cause a denial of service by supplying crafted glob patterns that trigger catastrophic backtracking in picomatch's regular expression engine. This results in high CPU usage and blocks the Node.js event loop, potentially making the affected application unresponsive. There is no impact on confidentiality or integrity reported. The vulnerability is exploitable remotely without authentication if untrusted input is processed.
Mitigation Recommendations
A fix is available in picomatch versions 4.0.4, 3.0.2, and 2.3.2. Users should upgrade to one of these versions or later according to their supported release line. If upgrading is not immediately feasible, avoid passing untrusted glob patterns to picomatch. Additional mitigations include disabling extglob support for untrusted input by setting 'noextglob: true', rejecting or sanitizing patterns containing nested extglobs or quantifiers like +() and *(), enforcing strict allowlists for accepted pattern syntax, running matching operations in isolated workers or separate processes with resource limits, and applying application-level request throttling and input validation on endpoints accepting glob patterns.
CVE-2026-33671: CWE-1333: Inefficient Regular Expression Complexity in micromatch picomatch
Description
Picomatch versions prior to 4.0.4, 3.0.2, and 2.3.2 contain a Regular Expression Denial of Service (ReDoS) vulnerability due to inefficient handling of certain extglob patterns. Crafted patterns using quantifiers like +() and *(), especially with nested or overlapping extglobs, can cause catastrophic backtracking, leading to excessive CPU usage and blocking the Node.js event loop. This results in a denial of service condition when untrusted user input is processed.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Picomatch is a JavaScript glob matcher vulnerable to a Regular Expression Denial of Service (ReDoS) in versions before 4.0.4, 3.0.2, and 2.3.2. The issue arises when certain crafted extglob patterns with quantifiers such as +() and *(), particularly those with nested or overlapping alternatives, are compiled into regular expressions that cause catastrophic backtracking on non-matching input. This leads to excessive CPU consumption and blocks the Node.js event loop, causing denial of service. The vulnerability affects applications that accept untrusted glob patterns passed to picomatch. The issue has been addressed in the specified fixed versions. Mitigations include upgrading, disabling extglob for untrusted input, sanitizing patterns, enforcing allowlists, isolating matching in separate processes, and applying input validation and throttling.
Potential Impact
An attacker can cause a denial of service by supplying crafted glob patterns that trigger catastrophic backtracking in picomatch's regular expression engine. This results in high CPU usage and blocks the Node.js event loop, potentially making the affected application unresponsive. There is no impact on confidentiality or integrity reported. The vulnerability is exploitable remotely without authentication if untrusted input is processed.
Mitigation Recommendations
A fix is available in picomatch versions 4.0.4, 3.0.2, and 2.3.2. Users should upgrade to one of these versions or later according to their supported release line. If upgrading is not immediately feasible, avoid passing untrusted glob patterns to picomatch. Additional mitigations include disabling extglob support for untrusted input by setting 'noextglob: true', rejecting or sanitizing patterns containing nested extglobs or quantifiers like +() and *(), enforcing strict allowlists for accepted pattern syntax, running matching operations in isolated workers or separate processes with resource limits, and applying application-level request throttling and input validation on endpoints accepting glob patterns.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-23T16:34:59.930Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69c5a8ce3c064ed76fd1dae2
Added to database: 03/26/2026, 21:44:46 UTC
Last enriched: 04/03/2026, 13:31:49 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 324
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.