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
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
- 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:LExploitation evidence
Disclosed: evidence found.
CVE published 14 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10node-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSnode-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10node-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSnode-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSnode-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSnode-micromatchpkg:deb/ubuntu/node-micromatch?arch=source&distro=focalOther threats | Affected
| 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
- ubuntu.com/security/CVE-2024-4067 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-4067 (opens in a new tab)
- github.com/micromatch/micromatch/issues/243 (opens in a new tab)
- github.com/micromatch/micromatch/pull/247 (opens in a new tab)
- devhub.checkmarx.com/cve-details/CVE-2024-4067/ (opens in a new tab)
- github.com/micromatch/micromatch/blob/2c56a8604b68c1099e7bc0f807ce0865a339747a/index.js (opens in a new tab)