CVE-2026-41403: OpenClaw: diffs viewer misclassifies proxied remote requests as loopback when `allowRemoteViewer` is disabled
OpenClaw 2026.3.28 and earlier can treat a proxied remote request to the diffs viewer as a local loopback request, even when allowRemoteViewer is off. Someone who reaches the viewer through a reverse proxy may read diffs that should be local only. The maintainers rate it low. Upgrade to openclaw 2026.3.31.
Published Apr 3, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026
What an attacker can do
The diffs extension serves a viewer over HTTP. With allowRemoteViewer disabled, only local requests should get in. The old resolveViewerAccess in extensions/diffs/src/http.ts took the client key from req.socket.remoteAddress. When OpenClaw sits behind a reverse proxy on the same machine, the socket address is the proxy's loopback address, not the real client's. In some cases the request was then judged local, although the person behind it was remote.
The attacker needs to reach the diffs viewer through such a proxy and know or guess the viewer URL. The CVSS 4.0 vector marks the attack as high complexity and requiring preconditions. What they get is read access to the content the viewer serves, such as code diffs the agent produced, so the impact is limited confidentiality loss. The flaw is a trust decision based on an untrusted source: the socket address instead of the proxy-aware client address. It does not give write access or code execution.
Who is affected
The npm package openclaw at 2026.3.28 and earlier, when the diffs extension runs behind a reverse proxy or tunnel that connects from loopback and allowRemoteViewer is not enabled. Version 2026.3.31 is the first stable release with the fix. Direct access with no proxy is not affected.
Check your install:
npm ls -g openclaw
openclaw --versionopenclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.28
- Fixed in
- 2026.3.31
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.31 or later.
npm install -g [email protected]Commit 30a16903 passes the gateway's trustedProxies and an allowRealIpFallback flag into the diffs HTTP handler. Proxy forwarding hints are checked first. If there are hints, or trustedProxies is set, the client IP is resolved with resolveRequestClientIp under the gateway's proxy trust rules. A request counts as local only when there are no hints and the resolved IP is loopback. A loopback request through a trusted proxy with no client-origin headers is refused with a 404. The advisory names no workaround; set trustedProxies in the gateway config to match your proxy.
How to tell if you were hit
Check access logs of your reverse proxy for requests to the diffs viewer paths from external addresses, especially ones that returned content while allowRemoteViewer was off. Compare the forwarded client address, such as the x-forwarded-for header, with the address OpenClaw logged. After upgrading, direct external requests that used to succeed through the proxy should return 404.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
diffs viewer misclassifies proxied remote requests as loopback when allowRemoteViewer is disabled
Current Maintainer Triage
- Status: open
- Normalized severity: low
- Assessment: Shipped v2026.3.28 misclassified proxied diff-viewer requests as local loopback in some cases, a real but low-severity access-control flaw.
Affected Packages / Versions
- Package:
openclaw(npm) - Latest published npm version:
2026.3.31 - Vulnerable version range:
<=2026.3.28 - Patched versions:
>= 2026.3.31 - First stable tag containing the fix:
v2026.3.31
Fix Commit(s)
30a1690323088fd291abd11643a264a6828a002c— 2026-03-30T14:17:27-06:00
Release Process Note
- The fix is already present in released version
2026.3.31. - This draft looks ready for final maintainer disposition or publication, not additional code-fix work.
Thanks @smaeljaish771 for reporting.
Credited to smaeljaish771, KeenSecurityLab.
Questions
- Is OpenClaw 2026.3.28 affected by CVE-2026-41403?
Yes. Versions up to and including 2026.3.28 are vulnerable. The patched version is 2026.3.31.
- Do I need to change a config after upgrading?
If you run behind a reverse proxy, set the gateway's trustedProxies so the real client address can be resolved. The fix reads that setting, and without usable client-origin headers it fails closed.
- Is it exploited in the wild?
No source I read says so, and the entry has no CISA KEV flag. The EPSS score is about 0.3%.
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
