Skip to main content
HIGH

CVE-2026-27904

minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions

CVSS v3

7.5

HIGH

EPSS Score

0.5 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

poc

SSVC status

Get an alert for each new CVE published for minimatch.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • minimatchnpmall versions · fixed in 3.1.4
  • nodejsAlmaLinux:9all versions · fixed in 1:20.20.2-1.module_el9.7.0+226+88d36870and 2 other packages
  • nodejsAlmaLinux:8all versions · fixed in 1:20.20.2-1.module_el8.10.0+4165+3f200bdaand 3 other packages
  • nodejs-docsAlmaLinux:10all versions · fixed in 1:22.22.2-1.el10_1
  • nodejs-docsAlmaLinux:9all versions · fixed in 1:20.20.2-1.module_el9.7.0+224+0af7cc6b
  • nodejs-libsAlmaLinux:8all versions · fixed in 1:22.22.2-1.module_el8.10.0+4158+e796f37f
  • nodejs-nodemonAlmaLinux:9all versions · fixed in 3.0.1-1.module_el9.5.0+125+8dc38870
  • nodejs-nodemonAlmaLinux:8all versions · fixed in 3.0.1-1.module_el8.10.0+3982+85c136aa

5 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-27904 Red Hat Product Security785 products fixed · 74 known affected

    minimatch: Minimatch: Denial of Service via catastrophic backtracking in glob expressions

    openshift-logging/cluster-logging-operator-bundle as a component of Logging Subsystem for Red Hat OpenShift · openshift-logging/cluster-logging-rhel9-operator as a component of Logging Subsystem for Red Hat OpenShift · openshift-logging/elasticsearch-operator-bundle as a component of Logging Subsystem for Red Hat OpenShift

  • RHSA-2026:83622 Red Hat Product Security68 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.17.28 security, enhancement & bug fix update

  • RHSA-2026:83619 Red Hat Product Security64 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.16.36 security, enhancement & bug fix update

  • RHSA-2026:65126 Red Hat Product Security23 products fixed

    Red Hat Security Advisory: RHOAI 2.25.11 - Red Hat OpenShift AI

  • RHSA-2026:51349 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: General availability of the satellite/iop-host-inventory-frontend-rhel9 container image

  • RHSA-2026:50300 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Migration Toolkit for Applications

29 more advisories

Full record on NVD

Description

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.4, nested `*()` extglobs produce regexps with nested unbounded quantifiers (e.g. `(?:(?:a|b)*)*`), which exhibit catastrophic backtracking in V8. With a 12-byte pattern `*(*(*(a|b)))` and an 18-byte non-matching input, `minimatch()` stalls for over 7 seconds. Adding a single nesting level or a few input characters pushes this to minutes. This is the most severe finding: it is triggered by the default `minimatch()` API with no special options, and the minimum viable pattern is only 12 bytes. The same issue affects `+()` extglobs equally. 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.4 fix the issue.

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2026-02-26
Last Modified
2026-02-27

Frequently asked questions

What is CVE-2026-27904?

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.4, nested `*()` extglobs produce regexps with nested unbounded quantifiers (e.g. `(?:(?:a|b)*)*`), which exhibit catastrophic backtracking in V8. With a 12-byte pattern `*(*(*(a|b)))` and an 18-byte non-matching input, `minimatch()` stalls for over 7 seconds. Adding a single nesting level or a few input characters pushes this to minutes. This is the most severe finding: it is triggered by the default `minimatch()` API with no special options, and the minimum viable pattern is only 12 bytes. The same issue affects `+()` extglobs equally. 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.4 fix the issue.

Is CVE-2026-27904 actively exploited?

A proof-of-concept exploit exists for CVE-2026-27904, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-27904?

CVE-2026-27904 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running minimatch? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month