Read the docs

Cross-site WebSocket hijacking in @fastify/http-proxy

Priority LOW 25CWE-1385Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00141 1st percentileScored 2026-11-30
Fix Partial @fastify/http-proxy (@fastify/http-proxy): 11.6.10Red Hat: 2 without a fix

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

VendorProductAffected versionsFixed inStatusSource
fastify@fastify/http-proxy7.1.0 to before 11.6.1011.6.10Patch availableCNA
  • @fastify/http-proxy Vendorfastify Affected 7.1.0 to before 11.6.10 Fixed in 11.6.10 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:fastify:fastify\/http-proxy:*:*:*:*:*:*:*:*——fastify
  • cpe:2.3:a:fastify:fastify\/http-proxy:*:*:*:*:*:*:*:* Versions — — ·fastify

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 →

ProductStatusPlan or fix
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet: Fix deferred
Red Hat OpenShift Dev SpacesAffectedNo fix yet: Fix deferred

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-133111
  2. 2026-11-19 CISA SSVC decision points changed
  3. 2026-11-20 Affected versions changed · Red Hat
  4. 2026-11-20 CVSS score added · Red Hat

References

  • 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
See all 92 →

Sources