
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-35589 is a Cross-Site WebSocket Hijacking (CSWSH) vulnerability in the nanobot personal AI assistant's WhatsApp bridge component (bridge/src/server.ts). It affects all versions of the nanobot-whatsapp-bridge npm package up to and including 0.1.4.post6, and was disclosed on April 14, 2026. The vulnerability results from an incomplete remediation of a prior issue (CVE-2026-2577): while the WebSocket server was rebound to 127.0.0.1, token authentication remains disabled by default and no Origin header validation is performed. It carries a CVSS v3.1 base score of 9.3 (Critical) per Feedly's assessment, and 8.0 (High) per the official GitHub advisory (GitHub Advisory).
The root cause is classified as CWE-1385 (Missing Origin Validation in WebSockets). The WebSocket server in bridge/src/server.ts binds to 127.0.0.1:3001 but, when BRIDGE_TOKEN is not configured (the default), immediately accepts any incoming WebSocket connection without checking the Origin header. Because browsers do not enforce the Same-Origin Policy on WebSocket connections unless the server explicitly rejects cross-origin requests, a malicious webpage visited by the user can initiate a WebSocket handshake to ws://127.0.0.1:3001/ with an arbitrary Origin header and gain full API access. A public proof-of-concept Python script is available in the official advisory that demonstrates the attack by connecting with a spoofed Origin: https://attacker-website.com header (GitHub Advisory).
Successful exploitation grants an attacker full access to the nanobot WhatsApp bridge API, enabling them to hijack the victim's WhatsApp session, read all incoming messages, steal authentication QR codes (facilitating account takeover), and send arbitrary messages on behalf of the user. The confidentiality and integrity impacts are both rated High, as sensitive message content is exposed and the attacker can impersonate the victim in communications. Availability is not impacted, but the account takeover potential makes this a severe privacy and identity threat (GitHub Advisory).
BRIDGE_TOKEN configured, listening on ws://127.0.0.1:3001/.ws://127.0.0.1:3001/ with a cross-origin Origin header (e.g., Origin: https://attacker-website.com).ws://127.0.0.1:3001/. Since no Origin validation or token check is performed, the server accepts the connection immediately.{"type": "send", "to": "+1234567890", "text": "Hello from attacker!"} to send messages, or issue commands to read incoming messages and steal QR codes.ws://127.0.0.1:3001/ originating from browser processes (e.g., Chrome, Firefox) rather than the expected Python client; WebSocket upgrade requests containing Origin headers from external or unknown domains.Python client connected entries at unexpected times or in rapid succession; absence of Token authentication enabled log line indicating BRIDGE_TOKEN is not set.Upgrade the nanobot-whatsapp-bridge npm package to version 0.1.5 or later, which addresses this vulnerability (nanobot v0.1.5 Release). As an interim workaround, configure the BRIDGE_TOKEN environment variable to enable token-based authentication for WebSocket connections, which prevents unauthenticated cross-origin access. Additionally, ensure no untrusted websites are visited while the bridge is running until the patch is applied (GitHub Advisory).
The vulnerability was noted on Bluesky and Mastodon social platforms shortly after disclosure, with automated CVE tracking accounts broadcasting the advisory. Security aggregators including VulDB, CIRCL, and INCIBE-CERT indexed the vulnerability. No significant named researcher commentary or major media coverage beyond standard CVE aggregation has been observed (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."