# CVE-2026-16117: @fastify/http-proxy vulnerable to prefix escape via URL-encoded characters

- Severity: Critical 10.0 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A: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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-07-18T13:08:40.489Z
- Modified: 2026-07-28T15:39:01.323Z
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: openjs

## Description

Impact: @fastify/http-proxy versions up to and including 11.5.0 fail to rewrite the request prefix when the prefix segment is URL-encoded. Fastify's router URL-decodes paths for route matching, but request.url retains the original encoded form, and the prefix-rewrite step uses a literal string replace against the decoded prefix. A request that encodes one or more characters of the configured prefix therefore matches the route but skips the rewrite, so the raw encoded path is forwarded to the upstream unchanged. The upstream then decodes the path and serves it, letting an attacker reach upstream paths that the proxy was configured to hide via rewritePrefix, including internal or administrative endpoints.

Patches: upgrade to @fastify/http-proxy 11.6.0.

Workarounds: none.

(As written by CVE List.)

## Affected

- @fastify/http-proxy @fastify/http-proxy: before 11.6.0 (not affected: 11.6.0)
- fastify fastify/http-proxy: before 11.6.0

## References

- <https://github.com/fastify/fastify-http-proxy/security/advisories/GHSA-mx7v-qhg9-2mvv> (vendor-advisory)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-16117](https://www.cve.org/CVERecord?id=CVE-2026-16117), CVE Terms of Use, modified 2026-07-20
- NVD: [CVE-2026-16117](https://nvd.nist.gov/vuln/detail/CVE-2026-16117), Public domain, modified 2026-07-28

---

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