Denial of servicein micromatch.
No public exploit found; not on exploited lists.
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.
- Upgrade micromatch to 4.0.8 or later.
- Upgrade micromatch (npm) to 4.0.8 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 23 Apr 2024CVE ID reserved by Checkmarx.
- 13 May 2024Published in the CVE List.
- 17 Sep 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Same weakness: Regular expression denial of service
- devhub.checkmarx.com
- github.com
- github.com
- github.com
- advisory.checkmarx.net
- github.com
- github.com
- github.com
Patchminder. CVE-2024-4067: Denial of service in micromatch. https://patchminder.com/cve/cve-2024-4067/ (accessed 5 December 2026).