CVE-2026-53840: OpenClaw: MCP Streamable HTTP redirects could forward configured custom headers to another origin
OpenClaw forwarded operator-configured custom headers on cross-origin redirects when talking to a remote MCP Streamable HTTP server. A malicious or compromised MCP endpoint could redirect OpenClaw and receive the API keys or tenant-routing headers set for that server. Releases before 2026.5.12 are affected. Upgrade to 2026.5.12.
Published Jun 17, 2026 · Analysis Oct 26, 2026
What an attacker can do
OpenClaw can connect to remote MCP servers with transportType: "streamable-http" and send custom headers set under mcp.servers.*.headers. Teams often put an API key or a tenant header there. In affected releases, if the endpoint answered with a redirect to another origin, OpenClaw followed it and sent the same headers to the new host.
The attacker must control the MCP endpoint, have compromised it, or be able to make it redirect. They need no account on your side. The CVSS vector shows network access, low complexity and no user interaction, with high confidentiality impact.
The leak is limited to the headers configured for that one MCP server. The advisory states that it does not expose unrelated OpenClaw credentials. The exposure still matters when the header is a bearer token for a third-party service.
Who is affected
OpenClaw npm package versions before 2026.5.12. Only deployments that configure an MCP server with transportType: "streamable-http" and sensitive values under mcp.servers.*.headers are exposed. Check the installed version:
npm ls openclawThen review your OpenClaw config for mcp.servers entries that use custom headers, and list which of them point at servers you do not run yourself.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.5.12
- Fixed in
- 2026.5.12
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.5.12, the first stable patched version:
npm install -g [email protected]The GitHub advisory also names 2026.5.8 or later in its mitigation text, but its patched-version field says 2026.5.12. Use 2026.5.12 or newer. Before upgrading, avoid custom MCP headers with servers you do not fully trust. Rotate any MCP-specific credentials that a redirecting endpoint may have seen.
How to tell if you were hit
Review the logs of your MCP servers and any proxy in front of them for 3xx responses that point to a different origin. Check the access logs of unexpected redirect targets for requests that carry your configured header names. If a configured MCP endpoint ever redirected off-origin, treat the header values as exposed and rotate them. The sources document no other indicators.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
OpenClaw supports remote MCP Streamable HTTP servers with operator-configured custom headers. In affected releases, those headers could be forwarded when the MCP endpoint responded with a cross-origin redirect.
This issue is limited to configured MCP Streamable HTTP servers that use custom headers. It does not expose unrelated OpenClaw credentials.
Affected configurations
This affects deployments where an MCP server is configured with:
transportType: "streamable-http"- sensitive custom headers under
mcp.servers.*.headers - an MCP endpoint that is malicious, compromised, or able to redirect to another origin
Impact
Custom MCP headers, such as API keys or tenant-routing headers, could be sent to the redirect target. The exposed credential scope depends on the header the operator configured for that MCP server.
Patched Versions
The first stable patched version is 2026.5.12.
Mitigations
Upgrade to [email protected] or later. Before upgrading, avoid custom MCP headers with servers you do not fully trust, and rotate any MCP-specific credentials that may have been exposed by a redirecting endpoint.
Credited to YLChen-007.
Questions
- Does this leak all my OpenClaw credentials?
No. The advisory says only the custom headers configured for the affected MCP Streamable HTTP server are sent to the redirect target. Unrelated OpenClaw credentials are not exposed.
- Which OpenClaw version fixes CVE-2026-53840?
2026.5.12 is the first stable patched version. Anything older is vulnerable.
- Is it exploited in the wild?
The sources do not say so. The entry is not in CISA's KEV catalog, and neither the GitHub advisory nor VulnCheck reports active exploitation.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
