CVE-2026-138148
Description
picomatch through 4.0.7 contains a glob filter bypass vulnerability because globstar (**) patterns are compiled without the dotAll flag and fail to match line terminators. Attackers who control file, object key or archive entry names containing newline characters can evade ** deny patterns, causing excluded resources to be included and exposed.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-138148 NameCVE-2026-138148 Descriptionpicomatch through 4.0.7 contains a glob filter bypass vulnerability because globstar (**) patterns are compiled without the dotAll flag and fail to match line terminators. Attackers who control file, object key or archive entry names containing newline characters can evade ** deny patterns, causing excluded resources to be included and exposed.…
CVE-2026-138148
| Name | CVE-2026-138148 |
| Description | picomatch through 4.0.7 contains a glob filter bypass vulnerability because globstar (**) patterns are compiled without the dotAll flag and fail to match line terminators. Attackers who control file, object key or archive entry names containing newline characters can evade ** deny patterns, causing excluded resources to be included and exposed. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| node-anymatch (PTS) | bookworm, trixie | 3.1.3+~cs4.6.1-2 | vulnerable |
| forky, sid | 3.1.3+~cs8.0.10-1 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| node-anymatch | source | (unstable) | (unfixed) |
Notes
https://github.com/micromatch/picomatch/pull/202
https://github.com/micromatch/picomatch/commit/75c313a9a5de0883afbbd9fa74ae03ef2919bd3e
https://github.com/micromatch/picomatch/commit/1470a59e4e6c3bc3c1d04f98c9ab032837107baa
node-anymatch provides node-picomatch
Apply commands
https://github.com/micromatch/picomatch/pull/202https://github.com/micromatch/picomatch/commit/75c313a9a5de0883afbbd9fa74ae03ef2919bd3ehttps://github.com/micromatch/picomatch/commit/1470a59e4e6c3bc3c1d04f98c9ab032837107baanode-anymatch provides node-picomatch
OS impact
Debian Affected 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | node-anymatch |
Affected | — |
| sid | node-anymatch |
Affected | — |
| forky | node-anymatch |
Affected | — |
| bookworm | node-anymatch |
Affected | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| micromatch | picomatch | {"endIncluding":"4.0.7"} | |
References
- https://github.com/micromatch/picomatch/blob/4.0.7/lib/parse.js#L1373-L1376
- https://github.com/micromatch/picomatch/blob/4.0.7/lib/parse.js#L395-L397
- https://github.com/micromatch/picomatch/commit/838c9d791cbd0e7c92e858f71ae38f6597416c09
- https://github.com/micromatch/picomatch/pull/202
- https://www.vulncheck.com/advisories/picomatch-through-4.0.7-glob-filter-bypass-via-globstar-line-terminators
- https://security-tracker.debian.org/tracker/CVE-2026-138148
CWEs
CWE-185
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.