CVE-2026-138148: picomatch through 4.0.7 Glob Filter Bypass via Globstar Line Terminators
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using picomatch through 4.0.7 are exposed when they rely on globstar (**) deny patterns to exclude files, object keys, or archive entries whose names can be influenced by an attacker.
What does an attacker need to exploit it?
The attacker needs to control a matched name and include a newline or other line terminator in that name. No authentication or user interaction is required according to the supplied vector.
Are all picomatch glob patterns affected?
The described bypass applies specifically to deny patterns using globstar (**). It occurs because the generated matching expression does not match line terminators.
What can be done if updating is not immediately possible?
Do not rely solely on ** deny patterns for attacker-controlled names. Reject or normalize file names, object keys, and archive entry names containing line terminators before applying filtering.