Skip to content
OpenAdvisories
High · 8.2 CVE-2026-118664 EUVD-2026-112471GHSA-qr28-fpjm-wq7f

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

Published Oct 28, 2026 · Updated Oct 29, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
SamVerschueren decode-uri-component < 0.5.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 js-jquery No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-frontend 2.18.0-r7 —
Wolfi rolling nextcloud-server-33 33.0.10-r5 —
Wolfi rolling opensearch-dashboards-3 +1 3.9.0-r10 —
Wolfi rolling vitess-23 23.0.8-r3 —
Wolfi rolling vitess-24 24.0.5-r8 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm decode-uri-component < 0.5.1 0.5.1 GHSA-qr28-fpjm-wq7f

References