Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-27903

minimatch has a ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments
Back to all
CVE

CVE-2026-27903

minimatch has a ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments

minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Prior to version 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.3, matchOne() performs unbounded recursive backtracking when a glob pattern contains multiple non-adjacent ** (GLOBSTAR) segments and the input path does not match. The time complexity is O(C(n, k)) -- binomial -- where n is the number of path segments and k is the number of globstars. With k=11 and n=30, a call to the default minimatch() API stalls for roughly 5 seconds. With k=13, it exceeds 15 seconds. No memoization or call budget exists to bound this behavior. Any application where an attacker can influence the glob pattern passed to minimatch() is vulnerable. The realistic attack surface includes build tools and task runners that accept user-supplied glob arguments (ESLint, Webpack, Rollup config), multi-tenant systems where one tenant configures glob-based rules that run in a shared process, admin or developer interfaces that accept ignore-rule or filter configuration as globs, and CI/CD pipelines that evaluate user-submitted config files containing glob patterns. An attacker who can place a crafted pattern into any of these paths can stall the Node.js event loop for tens of seconds per invocation. The pattern is 56 bytes for a 5-second stall and does not require authentication in contexts where pattern input is part of the feature. Versions 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.3 fix the issue.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.5
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
C
H
U
-

Related Resources

No items found.

References

https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27903.json, https://github.com/isaacs/minimatch/security/advisories/GHSA-7r86-cg39-jmmj, https://nvd.nist.gov/vuln/detail/CVE-2026-27903

Severity

7.5

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.5
EPSS Probability
0.00036%
EPSS Percentile
0.10588%
Introduced Version
346685ced5203464bb10fd3d4dfa6964f6102ede,b95cb1e4404ce374e447b3b1bfde837e74f139bd,5d20578d5749f53f3413b7ca413e5658d6ab0d05,ce9e6a4b42eb8a4c39eff1258affa9d37c66101b,31f61eeaa6c4493f81bf5eb0a146f23e538fdfd7,fc44f5f9123f534ecbf76af65558eb87d90f1028,26d281dc585af91df47cb93844e227e0ee90b7ce,0
Fix Available
ea94840326c3f40522f1b544bd2303024b0eec35,2de496f6d9362dd92460f35ffa6ff8de2907244b,a5f07f4b8de8a068e8fcafd44e7cafc2a8fe7be3,6fcf01a77e8a85765609e41be089595a36989e07,dc3340d6509d25d4bb75258e6d3b4403bb1cd9c3,e92ae291a1e512f2d7ae13d6797b02315f68a40c,5970751fa5886750886a59a20de834d54b4e2541,00c323b188b704e5d4bc534ecec2268cfa70a32a,2.332.0-r1,3.11.14.3-r2,3.12.7.2-r3,3.6.19-r6,3.7.13-r2,4.0.4-r6,4.109.2-r0,5.0.2-r1,10.0.2-r1,25.0.2-r4,8.17.10-r12,8.19.12-r2,9.0.8-r13,9.1.10-r6,9.2.5-r5,9.3.0-r2,2.95.12-r12,9.0.5-r1,0.8.2-r6,12.2.0-r2,11.11.0-r1,2.19.4-r15,2.19.4-r13,3.5.0-r6,3.5.0-r9,0.70.1-r1,5.14.3-r8,3.224.0-r1,43.49.0-r1,14.2.6-r0,5.5.0-r6,5.5.0-r7,22.0.4-r4,23.0.3-r5

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading