Intel

AIKIDO-2026-594484

encore.dev is vulnerable to Cross-Site WebSocket Hijacking

Cross-Site WebSocket HijackingGHSA-8wqj-wmx4-3j23 Published 3 days ago

43

Medium Risk

This Affects:

GOencore.dev
0.0.1 - 1.57.5
Fixed in 1.57.13
Are you affected? Scan for Free

TL;DR

The local Encore developer dashboard exposes a JSON-RPC API over a WebSocket served by the CLI daemon on the developer's machine without validating the request Origin, so connections from any web origin are accepted. While a developer runs Encore locally, a website they visit can open a cross-origin WebSocket to the daemon and read information available through the dashboard. This does not reach Encore Cloud or production data, and modern browsers further limit the attack with a local-network permission prompt. The fix validates the WebSocket Origin and only accepts connections from loopback addresses.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run the local Encore developer dashboard while browsing untrusted sites in the same browser profile.

Background info

encore.dev is vulnerable to Cross-Site WebSocket Hijacking in versions 0.0.1 - 1.57.5.

How to fix this

Upgrade the encore.dev library to the patch version.