This CVE reveals a compositional security failure in @fastify/http-proxy where two validation assumptions collided to create a gap. The library's WebSocket handler validates path traversal, and the developers assumed the HTTP handler was similarly protected—or that the upstream reply-from library handled it. Neither was true for the backslash variant. The reply-from library validates forward-slash traversal but not the backslash sequences that Windows path normalization would resolve identically. The rewritePrefix option presents itself as a security boundary—paths under this prefix get proxied—but the implementation splits that responsibility across multiple code paths without clear ownership. This is a trust chain failure, not merely a missing check. The backslash gap likely existed from the original implementation: a Linux developer writing validation tests on Linux never encountered Windows path semantics, and CI likely never exercised Windows normalization. The vulnerability was latent from day one, not a regression. Audit your deployment: check whether the proxy forwards to Windows-based backends, containers, or filesystems where backslash normalization differs. Beyond patching, treat this as a class-level warning—path normalization gaps between separators have appeared repeatedly across express-http-proxy, Node's http-proxy, and analogous libraries in Python and .NET. Review other entrypoints in your proxy stack for validation asymmetries, particularly if WebSocket, SSE, or HTTP/3 handlers were added at different times than the core proxy. The CVSS score of 7.5 understates the post-disclosure risk: once public, every scanner and exploit kit gains the bypass playbook, and the window between disclosure and widespread patching is when exposure actively compounds.
CVE-2026-85124
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · unedited@fastify/http-proxy versions before 11.6.2 do not validate proxied HTTP request paths for backslash based dot-segments before forwarding them to the configured upstream. The plain HTTP request handler skips the destination validation that the WebSocket path performs, and the underlying reply-from library only rejects forward-slash traversal, so a request containing backslash dot-segments can escape the boundary set by the prefix and rewritePrefix options. An unauthenticated network attacker can use this to reach upstream paths that were meant to stay hidden behind the proxy, resulting in disclosure of internal endpoints. This is a path traversal issue (CWE-22). Users should upgrade to @fastify/http-proxy 11.6.2 or later.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysisA file path is built from user input without being confined, so sequences like “../” let an attacker step outside the intended directory. That can expose configuration, credentials, or source code, and in the worst case lets an attacker write files where they shouldn't. A durable fix resolves and canonicalises the path, then rejects anything that escapes a known-safe base directory.
General guidance for the path traversal class — the official description and references above are authoritative for this specific CVE. Want a bespoke review and a reviewed fix? Ask our team →
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 11.6.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped11.6.2
@fastify/[email protected]
- Run `npm install @fastify/[email protected]` to install the fixed version, or run `npm update @fastify/http-proxy` to get the latest version which includes the fix
- Verify the installation was successful by checking the installed version with `npm list @fastify/http-proxy`
- Test that the proxy still functions correctly with your existing configuration
- Deploy the updated package to your production environment
Generated from the published advisory — verify against the referenced sources before acting.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-85124 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesThis CVE reveals a compositional security failure in @fastify/http-proxy where two validation assumptions collided to create a gap. The library's WebSocket handler validates path traversal, and the developers assumed the HTTP handler was similarly protected—or that the upstream reply-from library handled it. Neither was true for the backslash variant. The reply-from library validates forward-slash traversal but not the backslash sequences that Windows path normalization would resolve identically. The rewritePrefix option presents itself as a security boundary—paths under this prefix get proxied—but the implementation splits that responsibility across multiple code paths without clear ownership. This is a trust chain failure, not merely a missing check. The backslash gap likely existed from the original implementation: a Linux developer writing validation tests on Linux never encountered Windows path semantics, and CI likely never exercised Windows normalization. The vulnerability was latent from day one, not a regression. Audit your deployment: check whether the proxy forwards to Windows-based backends, containers, or filesystems where backslash normalization differs. Beyond patching, treat this as a class-level warning—path normalization gaps between separators have appeared repeatedly across express-http-proxy, Node's http-proxy, and analogous libraries in Python and .NET. Review other entrypoints in your proxy stack for validation asymmetries, particularly if WebSocket, SSE, or HTTP/3 handlers were added at different times than the core proxy. The CVSS score of 7.5 understates the post-disclosure risk: once public, every scanner and exploit kit gains the bypass playbook, and the window between disclosure and widespread patching is when exposure actively compounds.
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-85124 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data