Openclaw cli: OpenClaw: Forwarding header spoofing bypasses gateway.trustedProxies origin detection (CVE-2026-35656)
Description
A vulnerability in the openclaw CLI prior to version 2026.3.22 allows spoofed loopback hops in forwarding headers to bypass the gateway.trustedProxies origin detection. This can weaken downstream authentication and rate-limiting decisions that rely on accurate client origin identification. The issue is fixed in version 2026.3.22 and later.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
When the gateway.trustedProxies setting is configured in openclaw CLI versions before 2026.3.22, an attacker can spoof loopback hops in forwarding headers. These spoofed headers may be accepted as the client origin, potentially bypassing security controls such as authentication and rate-limiting that depend on the resolved client identity. The vulnerability was addressed by ignoring loopback forwarded hops before trusted-proxy client resolution in the source code (src/gateway/net.ts). The fix was introduced in version 2026.3.22 and remains in subsequent releases.
Potential Impact
The vulnerability allows an attacker to spoof the client origin by injecting loopback hops in forwarding headers, which can weaken authentication and rate-limiting mechanisms downstream. This may lead to unauthorized access or abuse of service due to incorrect client identity resolution. The CVSS v3.1 score is 6.5 (medium severity), reflecting a network attack vector with low complexity and no user interaction required, impacting confidentiality and integrity but not availability.
Mitigation Recommendations
A patch is available and should be applied by upgrading to openclaw CLI version 2026.3.22 or later. The fix ignores loopback forwarded hops before trusted-proxy client resolution, preventing spoofing of the client origin. Users should verify they are running a fixed version to ensure protection against this vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-35656
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac245ab12601ec6a3166294
Added to database: 10/04/2026, 12:25:15 UTC
Last enriched: 10/04/2026, 12:54:07 UTC
Last updated: 10/04/2026, 16:08:37 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.