OpenClaw fetchWithSsrFGuard replays unsafe request bodies across cross-origin redirects
The `fetchWithSsrFGuard` function in OpenClaw replays unsafe request bodies across cross-origin redirects, potentially leading to the exposure of sensitive information when following cross-origin redirects in versions prior to 2026.4.8.
Triage facts
Revision 2- Evidence
- Unknown
- Severity
- High
- Sources
- 1 public source
- Freshness
- Revision 2Jan 10, 12:00 UTC
- Detection
- 2 rules
Revision history 1 entry · Revision 2
- Revision 2
Repaired a legacy canonical identity collision
Changed: slug
OpenClaw, a user-controlled local assistant, is vulnerable to a security issue where the fetchWithSsrFGuard function replays unsafe request bodies and headers across cross-origin redirects. Specifically, when a guarded fetch operation encounters a cross-origin redirect, it may inadvertently resend sensitive data contained within the request body or headers to a different origin than intended. This vulnerability affects OpenClaw versions prior to 2026.4.8. The patched version, 2026.4.8, addresses this issue. The fix was verified against commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5. This issue is scoped to the OpenClaw trust model and does not assume a multi-tenant service boundary.
Attack Chain
- A user initiates a fetch request via OpenClaw's
fetchWithSsrFGuardfunction. - The fetch request includes a body or sensitive headers intended for a specific origin.
- The initial server responds with an HTTP 302 redirect to a different origin.
- The
fetchWithSsrFGuardfunction, due to the vulnerability, replays the original request body and headers to the new origin. - The destination server receives the unintended data.
- The destination server processes the data based on the replayed request.
- The destination server may inadvertently expose or misuse the sensitive data from the original request.
Impact
Successful exploitation of this vulnerability could lead to the exposure of sensitive user data to unintended third-party servers. While the specific number of victims is not mentioned, any OpenClaw user initiating fetch requests across different origins is potentially at risk. The severity is high because sensitive information such as API keys, authentication tokens, or personal data could be compromised if replayed to a malicious or untrusted destination.
Recommendation
- Upgrade OpenClaw to version 2026.4.8 or later to remediate the vulnerability.
- Implement additional checks and validations on the server-side to verify the origin and integrity of incoming requests.
- Review and audit existing
fetchWithSsrFGuardimplementations to ensure proper handling of cross-origin redirects.
Detection coverage 2
Detect OpenClaw fetchWithSsrFGuard Cross-Origin Request with Body
mediumDetects outbound network connections from OpenClaw with a request body when following cross-origin redirects, indicating potential SSRF vulnerability exploitation.
Detect OpenClaw process creation
infoDetects OpenClaw process creation events, useful for tracking execution and potentially identifying malicious behavior related to SSRF exploitation.
Detection queries are available on the platform. Get full rules →