Skip to main content
VulnerabilityPublished Updated

CVE-2024-4067: Node micromatch · The NPM package micromatch prior to 4.0.8 is vulnerable to Regular Expression Denial

Affects node-micromatchSource GCVE Database

0
Compare

Not known to be exploited · CVSS 5.3 Medium · fixed in 4.0.8 : update node-micromatch when convenient.

Data as of 24 Nov 2026, 21:14 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.4% chance of exploitation in 30 days – higher than 73% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.0.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 May 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10node-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=stonkingOther threatsAffected
  • =4.0.8+~4.0.10-2
Fixed in–
Ubuntu 26.04 LTSnode-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=resoluteOther threatsAffected
  • =4.0.7+~4.0.9-1
  • =4.0.8+~4.0.10-1
  • =4.0.8+~4.0.10-2
Fixed in–
Ubuntu 25.10node-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=questingOther threatsAffected
  • =4.0.7+~4.0.9-1
Fixed in–
Ubuntu 24.04 LTSnode-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=nobleOther threatsAffected
  • =4.0.5+~4.0.2-1
Fixed in–
Ubuntu 22.04 LTSnode-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=jammyOther threatsAffected
  • =4.0.2+repack+~4.0.1-1
  • =4.0.4+~4.0.2-1
Fixed in–
Ubuntu 20.04 LTSnode-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=focalOther threatsAffected
  • =2.3.11-1
  • =4.0.2+repack-2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The NPM package `micromatch` prior to 4.0.8 is vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerability occurs in `micromatch.braces()` in `index.js` because the pattern `.*` will greedily match anything. By passing a malicious payload, the pattern matching will keep backtracking to the input while it doesn't find the closing bracket. As the input size increases, the consumption time will also increase until it causes the application to hang or slow down. There was a merged fix but further testing shows the issue persists. This issue should be mitigated by using a safe pattern that won't start backtracking the regular expression due to greedy matching. This issue was fixed in version 4.0.8.

References

Community reviews

Loading reviews…