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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| micromatch | picomatch | >= 4.0.0, < 4.0.4, >= 3.0.0, < 3.0.2, < 2.3.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-anymatch | 3.1.3+~cs8.0.6-1 | — |
| Debian 13 | node-anymatch | No fix yet | — |
| Debian 12 | node-anymatch | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | node-anymatch | No fix yet | — |
| Ubuntu 25.10 | node-anymatch | No fix yet | — |
| Ubuntu 24.04 LTS | node-anymatch | No fix yet | — |
| Ubuntu 22.04 LTS | node-anymatch | No fix yet | — |
| Ubuntu 20.04 LTS | node-anymatch | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | node-anymatch | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | nodejs-nodemon | No fix yet | — |
| Azure Linux 3 | nodejs24 | 24.14.1-2 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | argo-workflows-ui-4.0 | 4.0.3-r2 | — |
| Wolfi rolling | code-server | 4.112.0-r2 | — |
| Wolfi rolling | katib-earlystopping +8 | 0.19.0-r25 | — |
| Wolfi rolling | katib-suggestion-goptuna-compat | 0.19.0-r40 | — |
| Wolfi rolling | kubeflow-pipelines-frontend | 2.16.0-r11 | — |
| Wolfi rolling | lerna | 9.0.7-r2 | — |
| Wolfi rolling | nextcloud-server-33 | 33.0.6-r1 | — |
| Wolfi rolling | node-gyp | 12.2.0-r2 | — |
| Wolfi rolling | npm | 11.12.1-r0 | — |
| Wolfi rolling | opensearch-dashboards-3 | 3.5.0-r11 | — |
| Wolfi rolling | prism | 5.14.3-r13 | — |
| Wolfi rolling | pulumi-language-nodejs | 3.229.0-r0 | — |
| Wolfi rolling | rancher-api-ui | 1.2.3-r8 | — |
| Wolfi rolling | renovate | 43.104.7-r1 | — |
| Wolfi rolling | saf | 1.6.0-r0 | — |
| Wolfi rolling | sqlpad | 7.5.7-r28 | — |
| Wolfi rolling | tileserver-gl | 5.5.0-r11 | — |
| Wolfi rolling | ts-patch | 4.0.1-r0 | — |
| Wolfi rolling | vite | 8.0.11-r0 | — |
| Wolfi rolling | vitess-23 | 23.0.3-r12 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
BeLazy167/next-picomatch-cve-repro ★ 0 · Apr 17, 2026
Minimal repro for Next.js 16.2.4 bundling picomatch 4.0.3 (CVE-2026-33671)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | picomatch | >= 4.0.0, < 4.0.4 | 4.0.4 | GHSA-c2c7-rcm5-vvqj |
| npm | picomatch | >= 3.0.0, < 3.0.2 | 3.0.2 | GHSA-c2c7-rcm5-vvqj |
| npm | picomatch | < 2.3.2 | 2.3.2 | GHSA-c2c7-rcm5-vvqj |
Advisories 3
- WID-SEC-2026-2933 Splunk SOAR: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 2, 2026
- WID-SEC-2026-2460 Atlassian Bamboo, Bitbucket, Confluence, Fisheye, Crucible, Jira und Jira Service Management: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 1, 2026
- VDE-2026-088 METTLER TOLEDO: LabX Standard and Enterprise Report on External Component Analysis - v21.4 CERT@VDE · Sep 10, 2026