decode-uri-component: Denial of service via quadratic replacement of percent-encoded runs
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 fixed, 7 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| SamVerschueren | decode-uri-component | before 0.5.1 | 0.5.1 | Patch available | CNA |
| — | decode-uri-component (npm) | before 0.5.1 | 0.5.1 | Patch available | GHSA-qr28-fpjm-wq7f |
- decode-uri-component VendorSamVerschueren Affected before 0.5.1 Fixed in 0.5.1 Patch available CNA
- decode-uri-component (npm) Vendor— Affected before 0.5.1 Fixed in 0.5.1 Patch available GHSA-qr28-fpjm-wq7f
Remediation
- Fix · CNA decode-uri-component (SamVerschueren) Fixed in 0.5.1
- Fix · GHSA-qr28-fpjm-wq7f decode-uri-component (npm) Fixed in 0.5.1 Advisory →
Red Hat 1 advisory
- RHSA-2026:94580 Released 2026-11-03 · Red Hat rating ImportantRed Hat OpenShift distributed tracing platform (Tempo) 3.11.4 release
- Red Hat OpenShift distributed tracing 3.11 registry.redhat.io/rhosdt/tempo-gateway-opa-rhel9, registry.redhat.io/rhosdt/tempo-gateway-rhel9, registry.redhat.io/rhosdt/tempo-jaeger-query-rhel9 +2
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Serverless | Affected | No fix yet |
| Red Hat Ceph Storage 4 | Affected | No fix yet |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet |
| Red Hat Quay 3 | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat OpenShift distributed tracing 3.11 | Fixed | RHSA-2026:94580 |
Not affected: 10 products
- Red Hat Ceph Storage 9
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Fuse 7
- Red Hat Hardened Images
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat OpenShift distributed tracing 3.11
- Red Hat Single Sign-On 7
- Red Hat build of Apache Camel for Spring Boot 4
Timeline
- 2026-10-28 Threatist record created from CVE-2026-118664
- 2026-10-29 Alias added: GHSA-qr28-fpjm-wq7f
- 2026-10-29 Fix available: npm/[email protected] · GHSA-qr28-fpjm-wq7f
- 2026-10-29 CVSS score added · GHSA-qr28-fpjm-wq7f
- 2026-10-29 Weakness changed · GHSA-qr28-fpjm-wq7f
- 2026-10-29 5 new references · GHSA-qr28-fpjm-wq7f
- 2026-10-29 CISA SSVC decision points changed
- 2026-10-29 Priority changed: MEDIUM → LOW
- 2026-10-30 Affected versions changed · Red Hat
- 2026-10-30 CVSS score added · Red Hat
- 2026-11-04 Fix available: RHSA-2026:94580 · Red Hat
- 2026-11-04 Fix available: Red Hat OpenShift distributed tracing 3.11 · Red Hat
References
Other 4
- https://github.com/SamVerschueren/decode-uri-component/security/advisories/GHSA-qr28-fpjm-wq7f
- https://github.com/SamVerschueren/decode-uri-component/commit/fad01d65b93bd3f2f0dc32dfd8d57a38b57bc608
- https://github.com/SamVerschueren/decode-uri-component/releases/tag/v0.5.1
- https://github.com/SamVerschueren/decode-uri-component
More SamVerschueren vulnerabilities
- TI-2026-33553 Uncontrolled resource consumption in SamVerschueren decode-uri-component CVSS 4.0MEDIUM 6.6
Sources
- CVE-2026-118664 · CVE Program
- CVE-2026-118664 · NVD
- FIRST EPSS
- GHSA-qr28-fpjm-wq7f · GitHub Advisory Database · CC BY 4.0
- CVE-2026-118664 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences