CVE-2026-118664

GHSA-qr28-fpjm-wq7f · published 28 Oct 2026 · updated 29 Oct 2026

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

8.2HighCVSS 8.2EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in decode-uri-component 0.5.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
SamVerschueren<0.5.1
npm: decode-uri-component<=0.5.00.5.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-118664 severity on Zeptric[![CVE-2026-118664](https://zeptric.io/badge/cve/CVE-2026-118664.svg)](https://zeptric.io/cve/CVE-2026-118664)