CVE-2026-16117
published critical CVSS 3.1 · 10.0@fastify/http-proxy vulnerable to prefix escape via URL-encoded characters
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| @fastify/http-proxy | — | @fastify/http-proxy0 to < 11.6.0 (affected · semver) · 11.6.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| @fastify/http-proxy | @fastify/http-proxy | 0 to < 11.6.0 (affected · semver)11.6.0 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-20 CWE-20: Improper Input Validation
References
2Provider assertions
2openjs · cna
@fastify/http-proxy vulnerable to prefix escape via URL-encoded characters
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e1c9be3239bfd35814ed165b1f152867d3e7d5c424c1d50e82fb7e89160b9f89
- Ingested
- 23 Sep 2026, 09:02:32 UTC
- Source record
- Official CVE record