CVE-2026-138148: picomatch through 4.0.7 Glob Filter Bypass via Globstar Line Terminators

Published Nov 28, 2026
·
Updated

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

1 affected component
npm/picomatch<=4.0.7

Event History

Nov 28, 2026
CVE Published
via MITRE·01:43 AM
Data Sourced
via MITRE·01:43 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203