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

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-10-28T20:37:19.057Z
- Modified: 2026-10-29T18:17:28.070Z
- Also known as: GHSA-qr28-fpjm-wq7f
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- SamVerschueren decode-uri-component: < 0.5.1
- decode-uri-component (npm): before 0.5.1

## Every score

- GitHub_M: CVSS:4.0 8.2 High `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`
- GitHub: CVSS:4.0 High `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

- <https://github.com/SamVerschueren/decode-uri-component/security/advisories/GHSA-qr28-fpjm-wq7f> (web)
- <https://github.com/SamVerschueren/decode-uri-component/commit/fad01d65b93bd3f2f0dc32dfd8d57a38b57bc608> (web)
- <https://github.com/SamVerschueren/decode-uri-component/releases/tag/v0.5.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-118664> (advisory)
- <https://github.com/SamVerschueren/decode-uri-component> (package)

## Sources

- CVE List: [CVE-2026-118664](https://www.cve.org/CVERecord?id=CVE-2026-118664), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-qr28-fpjm-wq7f](https://github.com/advisories/GHSA-qr28-fpjm-wq7f), CC-BY-4.0, modified 2026-10-29
- NVD: [CVE-2026-118664](https://nvd.nist.gov/vuln/detail/CVE-2026-118664), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-118664 · Whole record: https://cve.day/CVE-2026-118664.json · Rebuilt by cve.day 2026-11-25T22:59:47.692Z
