CVE-2026-138148
Received Received - Intake

globstar pattern bypass in picomatch due to missing dotAll flag

Vulnerability report for CVE-2026-138148, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-28

Last updated on: 2026-11-28

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-28
Last Modified
2026-11-28
Generated
2026-11-28
AI Q&A
2026-11-28
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
micromatch picomatch From 0 (inc) to 4.0.7 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-185 The product specifies a regular expression in a way that causes data to be improperly matched or compared.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

picomatch through 4.0.7 has a glob filter bypass flaw where ** patterns fail to match line terminators like newlines. Attackers can exploit this by using filenames or keys with newline characters to bypass ** deny patterns, causing excluded files or resources to be included and exposed.

Detection Guidance

Check if your system uses picomatch version 4.0.7 or earlier. Run: npm list picomatch or grep -r 'picomatch' package.json. Test globstar patterns with filenames containing newlines to see if they bypass deny rules.

Impact Analysis

If you use picomatch to filter files or paths, an attacker could craft a filename with a newline to bypass intended exclusions. This might expose sensitive files, archives, or objects that should have been restricted. The impact depends on how picomatch is used in your application.

Compliance Impact

This vulnerability could lead to unauthorized exposure of sensitive data if restricted files are included due to the bypass. This may violate compliance requirements like GDPR (data protection) or HIPAA (health information privacy) by failing to enforce proper access controls.

Mitigation Strategies

Upgrade picomatch to a version beyond 4.0.7. Apply the fix from pull request #202 which replaces '.' with '[\s\S]' in globstar regex. Review file exclusion rules to ensure they handle newlines correctly.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138148. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...