Skip to main content

Openclaw CVE-2026-40045

MEDIUM
Cleartext Transmission of Sensitive Information (CWE-319)
2026-04-21 disclosure@vulncheck.com
5.9
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Position on adjacent network
  2. Delivery
    Forge discovery response or intercept setup traffic
  3. Exploit
    Redirect client to malicious ws:// endpoint
  4. Execution
    Transmit plaintext credentials to attacker
  5. Persist
    Exfiltrate gateway authentication
  6. Impact
    Compromise downstream gateway access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V12 - Secure Communication Transport encryption
Exploitation Conditions

Exploitation requires four specific conditions to coexist: (1) OpenClaw version before 2026.4.2 must be deployed and performing gateway discovery or setup; (2) the target network must allow non-loopback WebSocket endpoints (not restricted to 127.0.0.1), indicating non-default or permissive configuration; (3) the attacker must occupy the same network segment (adjacent, not routed through the internet) to forge discovery results or perform man-in-the-middle redirection; and (4) a legitimate user must initiate gateway discovery or setup workflow (user interaction required). Exploitation is blocked if OpenClaw is patched to 2026.4.2+, if network policy restricts discovery to loopback-only, if the attacker is not on the adjacent network, or if users do not interact with the gateway setup feature.

Impact

The CVSS score of 5.9 reflects moderate risk with important contextual limitations. The attack vector (AV:A) restricts exploitation to adjacent network positions, significantly reducing the threat surface compared to network-wide attacks. The requirement for user interaction (UI:P) and passive threat capability (AT:P) further constrains real-world exploitation-attackers must be on the same network segment and wait for or trigger legitimate user actions like gateway setup. The VC:H (high confidentiality impact) correctly captures that gateway credentials are fully compromised, but VI:N and VA:N (no integrity or availability impact) indicate data disclosure only, not system takeover. No active exploitation has been confirmed in CISA KEV, and no public exploit code is reported, suggesting this remains a theoretical but credible attack chain. Organizations with segmented networks (gateway discovery systems isolated from untrusted zones) face lower risk, while those with guest networks or permissive VLAN designs should prioritize patching. The disclosure model and advisory availability indicate responsible handling, supporting patch availability as the primary mitigation.

Exploit ScenarioDerived

An attacker positioned on the same network segment (corporate guest WiFi, compromised switch, or shared ISP segment) intercepts or spoofs OpenClaw gateway discovery responses, redirecting a victim's setup workflow to an attacker-controlled WebSocket server. When the victim initiates gateway pairing, their browser or client application transmits plaintext gateway credentials to the malicious endpoint, where the attacker captures and stores them for later use to access the legitimate gateway or pivot to downstream systems.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 21, 2026

OpenClaw before version 2026.4.2 transmits stored gateway credentials over unencrypted WebSocket (ws://) connections when accepting non-loopback endpoints, allowing adjacent network attackers with user interaction to forge discovery results or craft malicious setup codes that redirect clients to attacker-controlled endpoints and exfiltrate plaintext credentials. No public exploit code has been identified, but the vulnerability requires proximity to the target network and user interaction to trigger the credential disclosure.

RemediationAI

Upgrade OpenClaw to version 2026.4.2 or later, which enforces encrypted WebSocket (wss://) connections and restricts non-loopback gateway endpoints. Administrators should update immediately via the standard release channel. Until patching is complete, limit access to gateway discovery and setup interfaces to trusted network zones only-disable guest network access to systems running OpenClaw clients, enforce VLAN segmentation to isolate OpenClaw deployments from untrusted networks, and implement network monitoring for unencrypted WebSocket traffic (ws://) as a compensating control to detect active exploitation. These mitigations have operational trade-offs: network isolation may complicate legitimate remote administration workflows, and traffic monitoring adds overhead to network infrastructure but provides early warning of compromise attempts. The patch is the definitive fix and should be prioritized; network-level controls are interim measures.

Affected Packages

npm openclaw fix: 2026.4.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenClaw uses WebSocket connections to communicate with gateway endpoints for discovery and credential exchange. The vulnerability stems from CWE-319 (Cleartext Transmission of Sensitive Information), where the application fails to enforce encrypted WebSocket (wss://) connections or restrict endpoints to loopback-only addresses. Attackers on the same network segment (AV:A) can intercept or redirect WebSocket traffic by forging service discovery results or crafting setup codes. The application transmits gateway credentials-sensitive authentication material-in plaintext over these unencrypted channels, making them recoverable by passive network monitoring or active man-in-the-middle attacks. The AT:P flag (passive threat) indicates the attack requires network positioning but not active traffic manipulation to be discovered; UI:P (passive user interaction) means the victim must perform normal workflow actions like initiating gateway discovery or setup without recognizing the malicious endpoint.

Know when Openclaw gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 21, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 21, 2026 - 00:16 nvd
MEDIUM 5.9

DescriptionCVE.org

OpenClaw before 2026.4.2 accepts non-loopback cleartext ws:// gateway endpoints and transmits stored gateway credentials over unencrypted connections. Attackers can forge discovery results or craft setup codes to redirect clients to malicious endpoints, disclosing plaintext gateway credentials.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*
CVE-2026-28446 CRITICAL POC
9.4 Mar 05

Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.

CVE-2026-33579 CRITICAL POC
9.4 Mar 31

Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b

CVE-2026-32042 HIGH POC
8.8 Mar 21

OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att

CVE-2026-32051 HIGH POC
8.8 Mar 21

An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.

CVE-2026-25253 HIGH POC
8.8 Feb 01

OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e

CVE-2026-32846 HIGH POC
8.7 Mar 26

Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in

CVE-2026-53857 HIGH POC
8.6 Jun 16

Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses

CVE-2026-100530 HIGH POC
8.5 Sep 26

Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a

CVE-2026-32064 HIGH POC
8.5 Mar 21

Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach

CVE-2026-32055 HIGH POC
7.6 Mar 21

OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director

CVE-2026-32056 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func

CVE-2026-32049 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy