CWE-1385
Missing Origin Validation in WebSockets
Produkt używa WebSocket, ale nie weryfikuje prawidłowo, czy źródło danych lub komunikacji jest ważne. Taka luka bezpieczeństwa może pozwolić atakującemu na wysłanie złośliwych danych z nieupoważnionego źródła.
The product uses a WebSocket, but it does not properly verify that the source of data or communication is valid.
Podatność w aplikacji XSOverlay (przed buildem 647) umożliwia nielokalnym stronom internetowym wysyłanie złośliwych poleceń do wewnętrznego WebSocket API. W efekcie atakujący może doprowadzić do wykonania dowolnego kodu na maszynie ofiary bez jej interakcji.
W wersjach 2.13.0 i wcześniejszych narzędzia Cline (autonomiczny agent kodowania) istnieje podatność cross-origin WebSocket hijack w komponentach Cline Kanban servers. Podatność uzyskała ocenę CVSS 9.6 (CRITICAL), co wskazuje na poważne ryzyko dla użytkowników.
Vitest w wersjach z włączoną opcją `api` jest podatny na atak Cross-site WebSocket Hijacking (CSWSH), który umożliwia zdalne wykonanie kodu (RCE). Wystarczy, że ofiara odwiedzi złośliwą stronę internetową podczas działania serwera API Vitest.
Eclipse Theia w wersjach 1.8.1 i późniejszych udostępnia uprzywilejowane usługi terminala przez WebSocket bez uwierzytelnienia na poziomie serwisu. Atakujący może nakłonić użytkownika do odwiedzenia złośliwej strony i w ten sposób przejąć kontrolę nad terminalem oraz wykonać dowolne polecenia systemowe.
Claude Code is an agentic coding tool. Claude Code extensions in VSCode and forks (e.g., Cursor, Windsurf, and VSCodium) and JetBrains IDEs (e.g., IntelliJ, Pycharm, and Android Studio) are vulnerable to unauthorized websocket connections from an attacker when visiting attacker-controlled webpages. Claude Code for VSCode IDE extensions versions 0.2.116 through 1.0.23 are vulnerable. For Jetbrains IDE plugins, Claude Code [beta] versions 0.1.1 through 0.1.8 are vulnerable. In VSCode (and forks), exploitation would allow an attacker to read arbitrary files, see the list of files open in the IDE, get selection and diagnostics events from the IDE, or execute code in limited situations where a user has an open Jupyter Notebook and accepts a malicious prompt. In JetBrains IDEs, an attacker could get selection events, a list of open files, and a list of syntax errors. Claude released a patch for this issue on June 13th, 2025. Although Claude Code auto-updates when a user launch it and auto-updates the extensions, users should take the following steps, though the exact steps depend on one's integrated development environment (IDE). For VSCode, Cursor, Windsurf, VSCodium, and other VSCode forks, check the extension Claude Code for VSCode. Open the list of Extensions (View->Extensions), look for Claude Code for VSCode among installed extensions, update or uninstall any version prior to 1.0.24, and restart the IDE. For JetBrains IDEs including IntelliJ, PyCharm, and Android Studio, check the plugin Claude Code [Beta]. Open the Plugins list, look for Claude Code [Beta] among installed extensions, update or uninstall any version prior to 0.1.9, and restart the IDE.
Missing Origin Validation in WebSockets vulnerability in FLXEON. Session management was not sufficient to prevent unauthorized HTTPS requests. This issue affects FLXEON: through <= 9.3.4.
eDEX-UI is a science fiction terminal emulator. Versions 2.2.8 and prior are vulnerable to cross-site websocket hijacking. When running eDEX-UI and browsing the web, a malicious website can connect to eDEX's internal terminal control websocket, and send arbitrary commands to the shell. The project has been archived since 2021, and as of time of publication there are no plans to patch this issue and release a new version. Some workarounds are available, including shutting down eDEX-UI when browsing the web and ensuring the eDEX terminal runs with lowest possible privileges.
Versions of the package code-server before 4.10.1 are vulnerable to Missing Origin Validation in WebSockets handshakes. Exploiting this vulnerability can allow an adversary in specific scenarios to access data from and connect to the code-server instance.
An issue was discovered in Gitpod versions prior to release-2022.11.2.16. There is a Cross-Site WebSocket Hijacking (CSWSH) vulnerability that allows attackers to make WebSocket connections to the Gitpod JSONRPC server using a victim’s credentials, because the Origin header is not restricted. This can lead to the extraction of data from workspaces, to a full takeover of the workspace.
nanobot is a personal AI assistant. Versions prior to 0.1.5 contain a Cross-Site WebSocket Hijacking (CSWSH) vulnerability exists in the bridge's WebSocket server in bridge/src/server.ts, resulting from an incomplete remediation of CVE-2026-2577. The original fix changed the binding from 0.0.0.0 to 127.0.0.1 and added an optional BRIDGE_TOKEN parameter, but token authentication is disabled by default and the server does not validate the Origin header during the WebSocket handshake. Because browsers do not enforce the Same-Origin Policy on WebSockets unless the server explicitly denies cross-origin connections, any website visited by a user running the bridge can establish a WebSocket connection to ws://127.0.0.1:3001/ and gain full access to the bridge API. This allows an attacker to hijack the WhatsApp session, read incoming messages, steal authentication QR codes, and send messages on behalf of the user. This issue has bee fixed in version 0.1.5.
Movim prior to version 0.22 is affected by a Cross-Site WebSocket Hijacking vulnerability. This was the result of a missing header validation.
MCP Python SDK w wersjach przed 1.28.1 nie weryfikował nagłówków Host ani Origin podczas nawiązywania połączeń WebSocket, co umożliwia nieautoryzowanym źródłom połączenie się z aplikacją. Podatność dotyczy przestarzałego transportu websocket_server i może prowadzić do naruszenia poufności oraz integralności danych.
Midscene Bridge Server w wersjach do 1.10.3 zawiera brak uwierzytelnienia oraz błędną konfigurację CORS, umożliwiające nieuwierzytelnionemu atakującemu zdalne przejęcie aktywnej sesji bridge. Podatność jest szczególnie groźna, ponieważ exploit może zostać uruchomiony z poziomu dowolnej strony internetowej odwiedzanej przez ofiarę.
Apache Helix w wersjach do 2.0.0 włącznie posiada błędnie skonfigurowany filtr CORS w module REST API, który bezwarunkowo zezwala na żądania z dowolnego źródła. Atakujący kontrolujący stronę internetową odwiedzaną przez uwierzytelnionego użytkownika może odczytywać odpowiedzi i wysyłać żądania do administracyjnych endpointów REST.
Privilege Escalation in operations API in Canonical LXD <6.5 on multiple platforms allows attacker with read permissions to hijack terminal or console sessions and execute arbitrary commands via WebSocket connection hijacking format
Versions of the Traccar open-source GPS tracking system up to and including 6.11.1 contain a Cross-Site WebSocket Hijacking (CSWSH) vulnerability in the `/api/socket` endpoint. The application fails to validate the `Origin` header during the WebSocket handshake. This allows a remote attacker to bypass the Same Origin Policy (SOP) and establish a full-duplex WebSocket connection using a legitimate user's credentials (JSESSIONID). As of time of publication, it is unclear whether a fix is available.
Wersje GroupSession Free przed 5.3.0, GroupSession byCloud przed 5.3.3 i GroupSession ZION przed 5.3.2 nie weryfikują pochodzenia połączeń WebSocket. Jeśli użytkownik odwiedzi spreparowaną stronę, informacje z czatu wysyłane do użytkownika mogą zostać ujawnione.
Kubetail to tablica rozdzielcza do logowania w czasie rzeczywistym dla Kubernetes. Przed wersją 0.14.0, punkty końcowe WebSocket w Kubetail nie zawierały odpowiedniej walidacji nagłówka Origin podczas uaktualniania połączenia. Złośliwa strona internetowa odwiedzana przez użytkownika z aktywną sesją Kubetail mogła otworzyć WebSocket do jego pulpitu i odczytywać logi Kubernetes w czasie rzeczywistym. Jest to podatność Cross-Site WebSocket Hijacking (CSWSH) dotycząca zarówno wdrożenia desktopowego (domyślnie http://localhost:7500), jak i wdrożeń w klastrze (zazwyczaj za Ingressem z uwierzytelnianiem HTTP basic). Podatność została wyeliminowana w wersji 0.14.0.
npm @farmfe/core przed wersją 1.7.6 zawiera brak walidacji Origin w WebSocket. Serwer deweloperski (hot module reloading) nie weryfikuje origin podczas połączenia WebSocket z klientem. Umożliwia to atakującym monitorowanie deweloperów używających Farm, którzy odwiedzą ich stronę, oraz kradzież kodu źródłowego ujawnianego przez serwer WebSocket.
Mailpit to narzędzie do testowania poczty elektronicznej i API dla programistów. W wersjach przed 1.28.2 serwer WebSocket Mailpita akceptuje połączenia z dowolnego źródła, co powoduje lukę Cross-Site WebSocket Hijacking (CSWSH). Atakujący może hostować złośliwą witrynę, która podczas odwiedzenia przez dewelopera uruchamiającego Mailpita lokalnie nawiązuje połączenie WebSocket z instancją Mailpita ofiary (domyślnie ws://localhost:8025), umożliwiając przechwyanie poufnych danych takich jak zawartość wiadomości, nagłówki i statystyki serwera w czasie rzeczywistym. Podatność naprawiono w wersji 1.28.2.