CVE-2026-118664

High

Description

decode-uri-component provides a more robust alternative to decodeURIComponent. Prior to 0.5.1, decodeUriComponent in index.js falls back to customDecodeURIComponent after native decoding throws, and the fallback collects every distinct percent-encoded run before performing a full-string regular-expression replacement for each entry. Malformed input containing many distinct runs can therefore make both the number of replacements and the scanned input length grow together, causing quadratic CPU consumption and blocking the Node.js event loop; request-body inputs can reach the demonstrated size, while ordinary URL header limits reduce the practical delay. This issue is fixed in version 0.5.1.

SeverityHigh
CVSS8.2
Exploit probability—
ProductDecode-uri-component
PublishedOct 28, 2026
First seenNov 4, 2026

How to fix

Update
  • decode-uri-component0.5.1 or later

Affected products

ProductAffected versionsFixed in
decode-uri-componentnpmv ≤ 0.5.00.5.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.