Vulnerability · Published Oct 28, 2026 · Assigned by GitHub_M

CVE-2026-118664decode-uri-component: Denial of service via quadratic replacement of percent-encoded runs

High 8.2

In plain English

A high-severity uncontrolled resource consumption in decode-uri-component from SamVerschueren. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.2High
Exploit odds (30 days)0.3%top 75.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmdecode-uri-component0.5.1GHSA-qr28-fpjm-wq7f

Affected products (as reported)

VendorProductVersions
SamVerschueren decode-uri-component < 0.5.1

Weakness: CWE-400, CWE-407 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References