CVE-2026-40037: OpenClaw: `fetchWithSsrFGuard` replays unsafe request bodies across cross-origin redirects
OpenClaw's guarded fetch helper, `fetchWithSsrFGuard`, could resend unsafe request bodies and headers when it followed a redirect to a different origin. An attacker who controls a redirect can receive data meant for another host. The npm package `openclaw` is fixed in 2026.4.8.
Published Apr 9, 2026 · Updated Apr 10, 2026 · Analysis Oct 30, 2026
What an attacker can do
fetchWithSsrFGuard is OpenClaw's wrapper for outbound requests, meant to keep them from reaching unsafe destinations. When a server answered with a redirect to another origin, the helper replayed the original request body and headers to the new destination instead of dropping them. That is the data-authenticity weakness the advisory files under CWE-345.
So an attacker who can make OpenClaw request a URL they control, or who can bend a legitimate server's redirect, can collect request data and headers, which may include tokens or credentials. VulnCheck rates the confidentiality impact high and the integrity impact none, and its vector needs user interaction. The sources do not say which request types or headers are affected.
OpenClaw is a user-controlled local assistant. The advisory is scoped to that trust model and does not assume a multi-tenant service boundary.
Who is affected
The advisory text lists the affected range as <2026.3.31 and the patched version as 2026.4.8, while the package data lists < 2026.4.8 as vulnerable. Treat any version below 2026.4.8 as affected.
Check your install:
npm ls openclawand for a global install:
npm ls -g openclawopenclaw
- Ecosystem
- npm
- Affected
- < 2026.4.8
- Fixed in
- 2026.4.8
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.8.
npm install -g [email protected]The advisory names commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5 as the verified fixed tree and says regression tests cover the boundary. No workarounds are given. Until you upgrade, avoid pointing OpenClaw at URLs from untrusted sources, and rotate any token that was sent in requests to hosts that could redirect.
How to tell if you were hit
The sources give no log indicators. Check outbound request logs or proxy logs for a request to one host that is followed by an identical request, with the same body, to a different host. Review any tokens sent by OpenClaw to external services for use from unfamiliar addresses. Beam records agent shell commands and file access, which helps when an agent drives OpenClaw.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
fetchWithSsrFGuard replays unsafe request bodies across cross-origin redirects.
A guarded fetch could resend unsafe request bodies or headers when following cross-origin redirects.
OpenClaw is a user-controlled local assistant. This advisory is scoped to the OpenClaw trust model and does not assume a multi-tenant service boundary.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<2026.3.31 - Patched versions:
2026.4.8
Fix
The issue was fixed on main and is available in the patched npm version listed above. The verified fixed tree is commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5.
Verification
The fix was re-checked against main before publication, including targeted regression tests for the affected security boundary.
Credits
Thanks @BG0ECV for reporting.
Credited to BG0ECV.
Questions
- Which OpenClaw version fixes CVE-2026-40037?
2026.4.8. The advisory text also mentions a 2026.3.31 cutoff for the affected range, so treat everything below 2026.4.8 as vulnerable.
- What does CVE-2026-40037 expose?
Request bodies and headers that a guarded fetch sent to one origin can be resent to another origin after a redirect. The sources do not list which fields.
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
