Skip to main content
← Vulnerabilities

@fastify/http-proxy vulnerable to prefix escape via percent-encoded backslash dot-segments

Affects @fastify/http-proxy 11.6.0 through 11.6.2 when configured with prefix and rewritePrefix options and the upstream treats %5C as a path separator. Fixed in 11.6.3.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

5.9MediumCNA
Exploited
No known exploitation
Fix
Fixed in 11.6.3
Who is exposed
Not reported

Do first: Upgrade to a fixed version: 11.6.3.

Published
Last modified
Published
Not listed in CISA KEV
13/100 · provisional
Unclear
Fix
Fixed in 11.6.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

@fastify/http-proxy, a Fastify plugin that forwards requests to an upstream server under a configured path prefix, is affected. An unauthenticated remote attacker can craft a request that escapes that prefix and retrieves resources on the upstream server that were meant to be off-limits, exposing information without modifying anything.

Read the original description

@fastify/http-proxy is a Fastify plugin that proxies HTTP requests to an upstream server under a configured prefix. In versions 11.6.0 through 11.6.2, the destination validation normalizes literal backslashes before it percent-decodes the request path, so a path that encodes its backslashes and dot-segments survives the dot-segment check and is only turned into backslash and double-dot sequences after that check has passed. When the upstream resolves on a platform that treats a backslash as a path separator, the forwarded request walks out of the configured proxy prefix and reaches a sibling location on the upstream. An unauthenticated remote attacker can use this to retrieve upstream resources outside the intended prefix, so the impact is confidentiality only, and exploitation depends on the upstream's path handling. The issue is fixed in @fastify/http-proxy 11.6.3, and users should upgrade to 11.6.3 or later. This is a follow-up to the earlier prefix-escape fix, which did not account for the encoded-backslash form.

What to do

  • Upgrade to a fixed version: 11.6.3.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • @fastify/http-proxy @fastify/http-proxy

    From 11.6.0 · fixed in 11.6.3

Evidence 2

  1. Advisory
  2. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

FAQ

Questions about CVE-2026-120214

What does this mean?

A request using a percent-encoded backslash and dot-segments can escape the configured prefix, so the proxy can fetch upstream paths that rewritePrefix was meant to hide. This is a confidentiality loss and, depending on the upstream, can enable SSRF or an authorization bypass in the proxied service.Source: github.com

Am I affected, and how do I check?

Versions 11.6.0 through 11.6.2 are affected, and only when the proxy uses prefix and rewritePrefix and the upstream decodes %5C and treats the backslash as a path separator, such as a Windows host serving static files. To check, look at the @fastify/http-proxy version in package.json or the lockfile, and review the prefix and rewritePrefix options in the proxy registration.Source: github.com

What should I do about it?

Upgrade @fastify/http-proxy to 11.6.3 or later.Source: github.com

Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data