CVE-2026-31989: OpenClaw has web_search citation redirect SSRF via private-network-allowing policy
OpenClaw's Gemini `web_search` tool resolved citation redirects under an SSRF policy that allowed private networks. A redirect could point at loopback or internal addresses, and the gateway would fetch it. Versions before 2026.3.1 are affected. Upgrade the `openclaw` npm package to 2026.3.1.
Published Mar 2, 2026 · Updated Mar 20, 2026 · Analysis Oct 31, 2026
What an attacker can do
When the Gemini web_search tool returns citations, OpenClaw follows each citation URL's redirects to find the final address. That step ran with a policy that permitted private-network targets, instead of the strict default. A citation that redirects to 127.0.0.1, a private range or an internal hostname was fetched from the OpenClaw host.
The attacker must be able to influence citation redirect targets. That can mean a page or short link that a search result cites and that the attacker controls. They do not need to touch the OpenClaw host. The result is a server-side request to an address only the gateway can reach, such as a local admin service, an internal API or a cloud metadata endpoint. The GitHub advisory rates integrity impact as high. VulnCheck lists the same flaw as medium (5.3) with low impacts, so the sources differ on severity. Neither says the response body is returned to the attacker, and neither reports exploitation in the wild.
Who is affected
Affected: the openclaw npm package before 2026.3.1. The GitHub advisory text names 2026.2.26 and earlier. Only setups that use the Gemini web_search tool are on this path.
Check the version:
npm ls openclawFor a global install, use npm ls -g openclaw.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.3.1
- Fixed in
- 2026.3.1
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.1:
npm install [email protected]Citation redirect resolution now uses the strict default SSRF policy, with no private-network override. Redirects to localhost, private and internal targets are blocked. The advisory lists no workaround. Until you upgrade, consider turning off the Gemini web_search tool, and block gateway egress to internal ranges and metadata endpoints at the network layer.
How to tell if you were hit
Look at internal services' access logs for requests that come from the OpenClaw host and that match a web_search citation lookup, particularly to 127.0.0.1, private ranges or the cloud metadata address. Check the gateway's outbound connection logs and DNS queries for internal names that no search result should reach. Tool-call history showing web_search shortly before such requests ties the two together.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Gemini web_search citation redirect resolution used a private-network-allowing SSRF policy. A citation URL redirect could target loopback/private/internal destinations and be fetched by the gateway.
Impact
An attacker who can influence citation redirect targets could trigger internal-network requests from the OpenClaw host.
Fix
Citation redirect resolution now uses strict/default SSRF policy (no private-network override), blocking localhost/private/internal redirect targets.
Affected and Patched Versions
- Affected:
<= 2026.2.26 - Patched:
2026.3.1
Credited to tdjackey.
Questions
- What does CVE-2026-31989 let an attacker do?
Make the OpenClaw host send requests to loopback, private or internal addresses by controlling a citation redirect target. It is an SSRF, not code execution.
- Do the sources agree on severity?
No. The GitHub advisory scores it 8.7 with high integrity impact. VulnCheck lists 5.3 with low impacts. Patch either way.
- Which version fixes it?
2026.3.1. The advisory text lists 2026.2.26 and earlier as 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
