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

Published Jul 18, 2026
·
Updated

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.

Affected Software

2 affected components
npm/@fastify/http-proxy<=11.5.0
fastify Fastify\/http-proxy Node.js<11.6.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade @fastify/http-proxy to a version that resolves this vulnerability.

    Fixed in 11.6.0

Event History

Jul 18, 2026
CVE Published
via MITRE·01:08 PM
Data Sourced
via MITRE·01:08 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-16117?

The severity of CVE-2026-16117 is critical with a score of 10.

2

How do I fix CVE-2026-16117?

To fix CVE-2026-16117, upgrade to @fastify/http-proxy version 11.5.1 or later.

3

What impact does CVE-2026-16117 have on my application?

CVE-2026-16117 allows attackers to bypass the intended request prefix rewrite, potentially leading to unauthorized access.

4

Which versions of @fastify/http-proxy are affected by CVE-2026-16117?

@fastify/http-proxy versions up to and including 11.5.0 are affected by CVE-2026-16117.

5

What is the nature of the vulnerability in CVE-2026-16117?

CVE-2026-16117 is an input validation vulnerability caused by improper handling of URL-encoded characters in request prefixes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203