CVE-2026-138148

picomatch through 4.0.7 Glob Filter Bypass via Globstar Line Terminators

Published Nov 28, 2026 CVSS 4.0 · 6.9 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

picomatch, through version 4.0.7, compiles globstar ( ) patterns without the dotAll flag, causing line terminators to be ignored when matching. This flaw permits file, object key, or archive entry names that contain newline characters to bypass glob deny patterns, allowing an attacker to have excluded resources be included and exposed. The vulnerability is a filter bypass and is classified as CWE-185.

Affected Systems

The affected product is the micromatch picomatch library, version 4.0.7 and all earlier releases up to that point. Any application that uses this library to filter paths or file names is vulnerable.

Risk and Exploitability

The CVSS base score is 6.9, indicating moderate severity. No EPSS score is available, suggesting low publicly observed exploitation likelihood at the time of analysis. The vulnerability is not listed in the CISA KEV catalog. Attackers who can control the naming of files, objects, or archive entries—such as during upload or file system operations—can exploit this bypass. The attack vector is likely local or application-level rather than remote code execution, but could be leveraged remotely if the application accepts user-supplied names.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade picomatch to the latest patched version that includes the globstar line terminator fix.
  • Sanitize or validate any file, object key, or archive entry names to ensure they do not contain newline or other line terminator characters before passing them to picomatch.
  • Apply the repository commit that introduces the dotAll flag for globstar patterns or any equivalent patch if upgrading is not immediately possible.

Generated by OpenCVE AI on November 28, 2026 at 02:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Micromatch
Micromatch picomatch
Vendors & Products Micromatch
Micromatch picomatch
Type Values Removed Values Added
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.
Title picomatch through 4.0.7 Glob Filter Bypass via Globstar Line Terminators
First Time appeared Jonschlinkert
Jonschlinkert picomatch
Weaknesses CWE-185
CPEs cpe:2.3:a:jonschlinkert:picomatch:*:*:*:*:*:*:*:*
Vendors & Products Jonschlinkert
Jonschlinkert picomatch
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-185

    Incorrect Regular Expression

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 28, 2026, 1:43 AM
Reserved
Nov 28, 2026, 1:08 AM
Status
Received
Published
Nov 28, 2026, 2:17 AM
Modified
Nov 28, 2026, 2:17 AM