CVE-2026-32029: OpenClaw improperly parses X-Forwarded-For behind trusted proxies allows client IP spoofing in security decisions
OpenClaw 2026.2.19-2 and earlier trusts the left-most X-Forwarded-For value when a request comes from a configured trusted proxy. Behind proxies that append or keep client headers, an attacker can set their own apparent IP and affect auth rate limits and local/private classification. Fixed in 2026.2.21.
Published Mar 3, 2026 · Updated Mar 25, 2026 · Analysis Nov 8, 2026
What an attacker can do
parseForwardedForClientIp in src/gateway/net.ts took the left-most entry of X-Forwarded-For. When a proxy appends to the header, the left-most entry is whatever the client sent, and the proxy adds the real peer on the right. An attacker can therefore put a chosen address first and have the gateway use it as the client IP (CWE-345, CWE-807).
The advisory names two security uses of that IP: the identity for authentication rate limiting, and the local/private classification of a client. Spoofing the first lets an attacker dodge per-IP lockouts. Spoofing the second lets a remote client pass as a local or private one, where the gateway may apply looser rules.
The conditions limit the impact. The deployment must sit behind configured trusted proxies, and those proxies must append or preserve inbound forwarding headers. OpenClaw's docs recommend that proxies overwrite them, and the advisory says this lowers severity. The scores are medium (CVSS 3.1 of 5.3, integrity impact low), with no confidentiality or availability impact.
Who is affected
The npm package openclaw at 2026.2.19-2 and earlier. Only deployments behind trusted proxies that append or keep client-supplied X-Forwarded-For values are exposed. If your proxy overwrites the header, the left-most value is already the real peer.
npm ls -g openclawThen check your proxy config for how it handles X-Forwarded-For.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.2.19-2
- Fixed in
- 2026.2.21
- Check
npm ls openclaw
How to fix it
Upgrade to 2026.2.21.
npm install -g [email protected]The fix (commits 07039dc and 8877bfd) trims and filters the comma-separated entries and uses the right-most one, so a client-supplied value at the front is ignored. Also configure your reverse proxy to overwrite inbound forwarding headers, as the docs recommend, not append to them.
How to tell if you were hit
In gateway and proxy logs, look for requests whose X-Forwarded-For starts with a private, loopback or otherwise unexpected address ahead of the real peer. Check auth rate-limit logs for many attempts spread across varying client IPs but sharing a real source. Compare the client IP OpenClaw recorded with the proxy's recorded peer address.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
OpenClaw used left-most X-Forwarded-For values when requests came from configured trusted proxies. In proxy chains that append/preserve header values, this could let attacker-controlled header content influence security decisions tied to client IP.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected:
<= 2026.2.19-2 - Patched:
2026.2.21(planned next release)
Impact
Possible client-IP spoofing in security-sensitive paths (for example auth rate-limit identity and local/private classification) for deployments behind trusted proxies with non-recommended forwarding behavior.
Scope Note
OpenClaw docs recommend reverse proxies overwrite (not append/preserve) inbound forwarding headers. This condition reduces severity.
Fix Commit(s)
07039dc089e51589a213ec0d16f8d6f2cd871fa18877bfd11ec7760b115b2d0d7500a45da2749747
Release Process Note
patched_versions is pre-set to the planned next release (2026.2.21). After npm release is out, publish this advisory.
OpenClaw thanks @AnthonyDiSanti for reporting.
Credited to AnthonyDiSanti, vincentkoc.
Questions
- Am I affected if my proxy overwrites X-Forwarded-For?
The advisory says the issue appears in proxy chains that append or preserve header values. OpenClaw docs recommend overwriting, which reduces severity.
- What can an attacker do with a spoofed IP?
Per the advisory: affect auth rate-limit identity and local/private client classification. It does not claim data exposure or code execution.
- Which version fixes CVE-2026-32029?
OpenClaw 2026.2.21. Versions up to 2026.2.19-2 are affected.
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
