Cross-site WebSocket hijacking in @fastify/http-proxy
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
@fastify/http-proxy from 7.1.0 before 11.6.10 is affected when WebSocket support is enabled. The default header rewriter forwards the client cookie but drops the browser Origin header, so upstream servers that accept a missing origin as a trusted client skip their cross-site check (CWE-1385). A malicious page visited by a logged-in user can open a WebSocket through the proxy and read or send messages as that user.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Description from the CNA
@fastify/http-proxy is a Fastify plugin that proxies HTTP and WebSocket traffic to an upstream server. In versions from 7.1.0 up to but not including 11.6.10, when the plugin is registered with websocket support enabled, it opens the upstream WebSocket connection with a header set built by the default header rewriter, which forwards the client cookie but never sets the upstream origin option, so the browser origin header is dropped while the authenticating cookie is forwarded. Many WebSocket servers defend against cross-site hijacking by checking the origin and treat a missing origin as a trusted non-browser client, so behind the proxy that check never sees the foreign origin. A malicious page visited by a logged-in user can therefore open a WebSocket through the proxy to an upstream that authenticates the handshake with a cookie, and read or send messages on the user's behalf. The issue is fixed in @fastify/http-proxy 11.6.10, and users should upgrade to 11.6.10 or later. As a workaround, provide a header rewriter that sets a correct origin, or validate the origin before the proxy.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade @fastify/http-proxy to 11.6.10 or later. Red Hat OpenShift AI (RHOAI) and Red Hat OpenShift Dev Spaces are listed as affected without a fix and with no plan available. As a workaround, provide a header rewriter that sets a correct origin, or validate the origin before the proxy.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
- Fix · CNA @fastify/http-proxy (@fastify/http-proxy) Fixed in 11.6.10
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
@fastify/http-proxy 11.6.10
5 records Highest priority Priority LOW 5 LOW
Other records, highest priority first
- TI-2026-95079 Denial of service in @fastify/http-proxy via WebSocket upgrade URL fragmentPriority LOW 39
- TI-2026-95071 Denial of service in @fastify/http-proxy via pipelined WebSocket upgradePriority LOW 39
- TI-2026-95078 Unhandled socket error in @fastify/http-proxy WebSocket upgrade crashes Node.jsPriority LOW 33
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
Timeline
- 2026-11-19 Threatist record created from CVE-2026-133111
- 2026-11-19 CISA SSVC decision points changed
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
References
More fastify vulnerabilities
- TI-2026-26180 @fastify/express vulnerable to middleware authentication bypass via URL normalization… CVSS 4.0CRITICAL 9.1
- TI-2026-26179 @fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes CVSS 3.1CRITICAL 9.1
- TI-2026-26177 @fastify/reply-from vulnerable to connection header abuse enabling stripping of proxy-added headers CVSS 4.0CRITICAL 9.0
- TI-2026-05498 @fastify/middie vulnerable to middleware authentication bypass in child plugin scopes CVSS 3.1CRITICAL 9.1
- TI-2023-15307 Cross-site request forgery in npm @fastify/oauth2 CVSS 3.1HIGH 8.8
- TI-2026-17731 @fastify/express vulnerable to Improper Handling of URL Encoding (Hex Encoding) CVSS 3.1HIGH 8.4
Sources
- CVE-2026-133111 · CVE Program
- CVE-2026-133111 · NVD
- FIRST EPSS
- CVE-2026-133111 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences