CVE-2026-53840: OpenClaw MCP Header Leakage Vulnerability (CVSS 7.1)
OpenClaw versions before 2026.5.12 inadvertently leak sensitive authentication headers—such as API keys and tenant-routing credentials—when handling cross-origin redirects through its streamable-http Model Context Protocol (MCP) servers. An attacker who controls or compromises an MCP endpoint can exploit this by redirecting requests to an attacker-controlled domain, capturing those headers in transit. This is a credential exfiltration risk that requires authentication to trigger but carries significant impact once exploited.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.1 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
- Weaknesses (CWE)
- CWE-522
- Affected products
- 9 configuration(s)
- Published / Modified
- 2026-06-16 / 2026-06-17
NVD description (verbatim)
OpenClaw before 2026.5.12 contains an information disclosure vulnerability in streamable-http MCP servers that forwards operator-configured custom headers during cross-origin redirects. Attackers controlling or compromising an MCP endpoint can redirect requests to exfiltrate sensitive headers like API keys or tenant-routing credentials to attacker-controlled origins.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability resides in OpenClaw's streamable-http MCP server implementation, which fails to sanitize operator-configured custom headers during cross-origin HTTP redirects. When an MCP endpoint issues a redirect (3xx response) to a different origin, the application forwards the original request headers—including Authorization, API credentials, and custom tenant identifiers—to the new location without filtering. An attacker with control or network access to an MCP server endpoint can craft a redirect response pointing to an attacker-controlled origin, causing the client to leak sensitive headers. The issue is classified under CWE-522 (Insufficiently Protected Credentials) due to the unprotected transmission of authentication material.
Business impact
Successful exploitation enables credential compromise, which could lead to unauthorized API access, lateral movement within integrated services, and data exfiltration. For organizations relying on OpenClaw's MCP integrations, a compromised endpoint becomes a vector for stealing production API keys and tenant-specific routing tokens. The impact is amplified in multi-tenant or SaaS deployments where tenant isolation depends on header-based routing. While exploitation requires authenticated access or endpoint compromise, the consequence—wholesale credential theft—justifies immediate patching.
Affected systems
OpenClaw versions prior to 2026.5.12 are affected. Organizations running streamable-http MCP servers should verify their OpenClaw deployment version and patch status immediately. The vulnerability is specific to the MCP server implementation; other OpenClaw components are not directly affected unless they depend on streamable-http functionality.
Exploitability
The vulnerability requires either authenticated access (PR:L per CVSS) or control of an MCP endpoint. An attacker cannot exploit this remotely without at least user-level privileges or network access to MCP infrastructure. However, once those preconditions are met, exploitation is straightforward: crafting a redirect response to an attacker-controlled server will passively capture headers. No user interaction (UI:N) is required—the vulnerability is triggered automatically during redirect handling. The attack surface is limited to organizations exposing MCP endpoints but is highly effective when those endpoints are accessible.
Remediation
Upgrade OpenClaw to version 2026.5.12 or later. This patch version addresses the header-leakage issue by sanitizing custom headers before cross-origin redirects. Organizations should verify the patch version in their environment and test in a non-production context before rolling out to production systems. If immediate patching is not feasible, restrict network access to MCP endpoints and monitor outbound HTTP traffic for unexpected redirect targets.
Patch guidance
Deploy OpenClaw 2026.5.12 or a later release. Check your current version using your deployment's standard package management tools. Apply the patch during a maintenance window, as it may require restarting MCP server processes. Validate the patch by confirming the version string post-deployment and running regression tests on any integrations that rely on MCP server redirects. If your organization uses third-party MCP endpoints, notify those providers to ensure they are also patched.
Detection guidance
Monitor HTTP logs for cross-origin redirect patterns originating from MCP servers, particularly redirects to unexpected external domains. Correlate redirect events with sensitive header presence in request logs. Alert on any redirect responses from MCP infrastructure pointing to domains outside your organization's control. Review MCP server configuration to identify any custom headers that may be forwarded; these should be explicitly whitelisted and excluded from cross-origin redirects. Implement network egress controls to block MCP servers from reaching unauthorized external endpoints.
Why prioritize this
This vulnerability carries a HIGH severity rating (CVSS 7.1) due to the combination of high confidentiality impact (H), partial integrity impact (I:L), and the low barrier to exploitation once an attacker has endpoint access. Credential exfiltration is a critical risk in cloud and API-driven architectures. Although the vulnerability requires authentication or endpoint compromise to trigger, the consequences—wholesale theft of API keys and tenant tokens—justify immediate remediation. Organizations should treat this as a priority patch within one to two weeks of release.
Risk score, explained
The CVSS 3.1 score of 7.1 (HIGH) reflects: (1) high confidentiality impact from credential exposure, (2) low attack complexity and no special conditions required once access is gained, (3) requirement for low privileges or endpoint control, reducing but not eliminating risk, and (4) unchanged integrity and availability. The score appropriately captures the severity of header leakage without overstating the initial access barrier. Organizations with exposed or high-value MCP endpoints should consider this a 8+ priority internally.
Frequently asked questions
Does this vulnerability affect all OpenClaw installations or only MCP deployments?
Only OpenClaw installations using streamable-http MCP servers are affected. Core OpenClaw components are not vulnerable unless they depend on MCP functionality. Review your architecture to confirm whether you deploy MCP servers and, if so, patch immediately.
What headers are at risk of being leaked?
Any custom headers configured by the operator can be forwarded, including Authorization headers, API keys, Bearer tokens, tenant-routing identifiers, and internal request signatures. The vulnerability does not discriminate; all headers are forwarded unless explicitly filtered by the patch.
Can this be exploited without network access to an MCP endpoint?
Exploitation requires either authenticated access to the OpenClaw instance or network control/compromise of an MCP endpoint itself. A fully unauthenticated external attacker cannot exploit this remotely, but the bar is much lower than a typical remote code execution vulnerability.
Does the patch require downtime?
Deploying the patch likely requires restarting MCP server processes, which will introduce brief downtime for services dependent on those servers. Plan the upgrade during a maintenance window and test in a staging environment first.
This analysis is based on published vulnerability data as of the date of publication and does not constitute legal or professional security advice. Organizations should independently verify patch version numbers, availability, and compatibility with their OpenClaw deployments by consulting official vendor advisories and release notes. Testing patches in non-production environments is strongly recommended before production deployment. SEC.co assumes no liability for operational decisions made based on this analysis. Source: NVD (public-domain), retrieved 2026-07-24. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-7313HIGHProgress Sitefinity Plaintext Credential Exposure (CVSS 8.7)
- CVE-2024-45636MEDIUMIBM QRadar EDR Plaintext Credential Storage (3.12–3.12.24)
- CVE-2026-39908MEDIUMOpenBullet2 NTLMv2 Hash Disclosure via UNC Proxy Path
- CVE-2026-41715MEDIUMReactor Netty HTTP Redirect Credential Leakage Vulnerability
- CVE-2026-42951MEDIUMMacGregor VDR G4E Backup Credential Disclosure – Patch Guidance
- CVE-2026-49379MEDIUMJetBrains TeamCity Credential Exposure in Thread Names
- CVE-2026-49949MEDIUMCodexBar Credential Forwarding Vulnerability (CVSS 5.3)
- CVE-2026-6517MEDIUMMattermost Desktop NTLM Credential Leakage Vulnerability