CVE-2026-15631

Source
https://cve.org/CVERecord?id=CVE-2026-15631
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-15631.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-15631
Aliases
  • GHSA-7hrw-592w-9wh2
Published
2026-07-18T12:46:37.291Z
Modified
2026-07-30T04:02:06.399919786Z
Severity
  • 8.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N CVSS Calculator
Summary
@fastify/http-proxy vulnerable to prefix escape via WebSocket path traversal
Details

Impact: @fastify/http-proxy versions from 9.4.0 up to and including 11.5.0 fail to validate the resolved WebSocket destination path against the configured rewrite prefix. The WebSocket routing path in WebSocketProxy.findUpstream resolves the destination via the WHATWG URL constructor, which collapses dot segments, so a crafted upgrade request with path traversal sequences can escape the rewrite prefix and reach upstream endpoints that were not meant to be exposed by the proxy. This is a variant of CVE-2021-21322 in a code path that never went through the HTTP fix in fastify/reply-from. Exploitation requires a non-normalizing WebSocket client, since browsers and the ws package normalize the request path before sending, but raw HTTP clients or downstream proxies that forward the request target unchanged make the attack reachable in production topologies.

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

Workarounds: none.

Database specific
{
    "cna_assigner": "openjs",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/15xxx/CVE-2026-15631.json",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/fastify/fastify-http-proxy

Affected ranges

Type
GIT
Repo
https://github.com/fastify/fastify-http-proxy
Events
Database specific
{
    "cpe": "cpe:2.3:a:fastify:fastify\\/http-proxy:*:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "9.4.0"
        },
        {
            "fixed": "11.6.0"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ]
}

Affected versions

v10.*
v10.0.0
v10.0.1
v10.0.2
v11.*
v11.0.0
v11.0.1
v11.1.0
v11.1.1
v11.2.0
v11.3.0
v11.4.0
v11.4.1
v11.4.2
v11.4.3
v11.4.4
v11.5.0
v9.*
v9.4.0
v9.5.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-15631.json"