AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-28467: OpenClaw affected by SSRF via attachment/media URL hydration

mediumCVSS 4.0 6.9 · 3.1 5.9GHSA-wfp2-v9c7-fh79

OpenClaw before 2026.2.2 fetched any http or https URL it was given as an attachment or media source, with no SSRF checks. Anyone who can influence the URL, including through a model-controlled sendAttachment call or an auto-reply media URL, can make the gateway read internal services and send the response back as an attachment. Upgrade openclaw to 2026.2.2.

Published Feb 17, 2026 · Updated Mar 6, 2026 · Analysis Nov 24, 2026

What an attacker can do

OpenClaw sends files by downloading them first. In affected versions, remote media fetching ran a raw fetch on the URL. The gateway machine often reaches things the attacker cannot: services on 127.0.0.1, private RFC1918 ranges and cloud metadata endpoints. If an attacker gets OpenClaw to treat such an address as the file to attach, the gateway downloads it and sends the bytes out as an outbound attachment (CWE-918).

The attacker needs a way to influence the media URL. The advisory names two: a model-controlled sendAttachment call, and auto-reply media URLs. That fits an AI assistant that reads untrusted messages or pages, since injected text can steer the model to call the tool with an internal address. The scores differ by version of CVSS, and the 3.1 vector rates complexity as high.

The impact is a data leak. Cloud credentials from metadata services, internal API responses and local files served over HTTP can all leave as a chat attachment. The advisory states that this does not by itself give code execution or shell access.

Who is affected

Affected: the npm package openclaw, versions before 2026.2.2. Version 2026.2.2 is patched. Any gateway that sends media or attachments from URLs is in scope, and the risk grows when the model can call sendAttachment on content from untrusted users.

Check your version:

npm ls -g openclaw
openclaw --version

Also check whether the gateway host can reach cloud metadata or internal services.

openclaw

Ecosystem
npm
Affected
< 2026.2.2
Fixed in
2026.2.2
Check
npm ls openclaw

How to fix it

Upgrade openclaw to 2026.2.2 or later:

npm install -g openclaw@latest

From 2026.2.2, remote media fetching goes through SSRF checks: it blocks private, loopback and link-local addresses, pins DNS, and handles redirects, so requests to 127.0.0.1, RFC1918 space and cloud metadata hostnames are rejected. The fix commits are 81c68f5 and 9bd64c8. The advisory gives no other mitigation.

How to tell if you were hit

Review gateway logs for outbound fetches to 127.0.0.1, private ranges or metadata hostnames triggered by attachment or media handling. Check sent attachments for content that looks like internal responses, such as JSON from a metadata service. Review model tool calls to sendAttachment that carry internal URLs.

If a metadata fetch occurred, rotate the cloud credentials of the gateway host. Beam, when it runs beside your agents, records MCP tool calls, which can show attachment calls the model made.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Versions of the openclaw npm package prior to 2026.2.2 could be coerced into fetching arbitrary http(s) URLs during attachment/media hydration. An attacker who can influence the media URL (for example via model-controlled sendAttachment or auto-reply media URLs) could trigger SSRF to internal resources and exfiltrate the fetched bytes as an outbound attachment.

Plain-English Explanation

OpenClaw can send files by downloading them first.

On vulnerable versions (< 2026.2.2), if an attacker could get OpenClaw to treat a URL as the “file to attach”, OpenClaw would download that URL from the gateway machine and then send the downloaded bytes back out as an attachment.

That matters because the gateway can often reach internal-only endpoints that an attacker cannot (for example 127.0.0.1 services, private RFC1918 addresses, or cloud metadata endpoints). This is a data-leak risk.

This does not directly grant code execution or shell access; it is about making the gateway perform HTTP requests and returning the response bytes.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: < 2026.2.2
  • Fixed: >= 2026.2.2

Release timeline (npm):

  • 2026.2.1 published 2026-02-02T11:45:27Z
  • 2026.2.2 published 2026-02-04T00:56:41Z
  • This advisory was created 2026-02-05T10:42:26Z

Details

In affected versions, remote media fetching performed a raw fetch(url) without SSRF protections.

Starting in 2026.2.2, remote media fetching is guarded by SSRF checks (private/loopback/link-local blocking, DNS pinning, and redirect handling), so attempts to fetch 127.0.0.1, private RFC1918 space, or cloud metadata hostnames are rejected.

Proof of Concept

From any context where an attacker can influence an attachment/media URL, provide a media URL targeting an internal endpoint (example: http://127.0.0.1:9999/secret.txt).

On vulnerable versions (< 2026.2.2), the gateway fetches the URL and uses the response bytes as the attachment payload.

Fix

Fix commits:

  • 81c68f582d4a9a20d9cca9f367d2da9edc5a65ae
  • 9bd64c8a1f91dda602afc1d5246a2ff2be164647

Mitigation

Upgrade to openclaw >= 2026.2.2.

Thanks @simecek for reporting.

Credited to simecek, stanislavfortaisle.

Questions

Which OpenClaw version fixes CVE-2026-28467?

2026.2.2. Earlier versions are affected. The fix commits are 81c68f5 and 9bd64c8.

Can this lead to code execution?

Not directly. The advisory says it does not grant code execution or shell access. It makes the gateway perform HTTP requests and return the response bytes, which is a data-leak risk.

How does an attacker supply the URL?

The advisory names model-controlled sendAttachment calls and auto-reply media URLs. Any path where untrusted content can set the media URL works.

Is CVE-2026-28467 exploited in the wild?

The sources do not say so. The entry has no CISA catalog data, and the EPSS score is about 0.5 percent.

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 entries