NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

GHSA-68v4-hmwv-f43h: OpenClaw: Media download follows cross-origin redirects with Authorization headers intact

mediumCVSS 4.0 6.0

OpenClaw 2026.3.28 and earlier forward the Authorization header, cookies and API-key headers when a media download follows a redirect to a different origin. A link that redirects to an attacker's server hands over the credentials sent with the original request. Upgrade to openclaw 2026.3.31.

Published Apr 3, 2026 · Analysis Oct 30, 2026

What an attacker can do

OpenClaw saves media from URLs through downloadToFile in src/media/store.ts. When the server answers with a redirect, the download follows it. On affected versions, the request headers went along to the redirect target even when it was on another origin. If the original request carried an Authorization header, a Cookie or an X-Api-Key, those values reached the new host.

The attacker needs a way to make OpenClaw download a media URL that ends at a server they control: a link that redirects, or an open redirect on a site the agent is allowed to fetch from. The CVSS 4.0 vector marks it as needing a user or message to start the download and passive conditions. What they get is the credential sent with the request, which the vector scores as high confidentiality impact. That could be a token for a chat platform's media API, which then lets them act on that service. The flaw leaks credentials only; it does not run code.

Who is affected

The npm package openclaw at 2026.3.28 and earlier, for any flow that downloads media with authentication headers and follows redirects. Version 2026.3.31 is the first stable release with the fix.

Check your install:

npm ls -g openclaw
openclaw --version

The maintainers confirmed the behavior in shipped v2026.3.28.

openclaw

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 e704323f moves the redirect header filter into src/infra/net/redirect-headers.ts. For a cross-origin redirect, downloadToFile keeps only allowlisted headers, such as accept, accept-language, content-type, range and user-agent. Authorization, Cookie and X-Api-Key are dropped. Same-origin redirects keep all headers. The advisory names no workaround. Rotate any token that could have been sent to an untrusted host.

How to tell if you were hit

Check your proxy or egress logs for media downloads that were redirected to a host outside the expected platform domains, particularly those that carried an Authorization or API-key header. Review the access logs of any server you do not control that received requests with your tokens. If a token may have reached another origin, rotate it and review the activity on the account it belongs to.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Media download follows cross-origin redirects with Authorization headers intact

Current Maintainer Triage

  • Status: open
  • Normalized severity: medium
  • Assessment: Shipped v2026.3.28 media downloads forwarded Authorization across cross-origin redirects, a real in-scope credential-leak class that fits medium.

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)

  • e704323ff388ed21f6963f9b8e0b1b8dfaaabc5f — 2026-03-31T19:57:42+09:00

OpenClaw thanks @AntAISecurityLab for reporting.

Credited to AntAISecurityLab.

Questions

Which headers leaked in GHSA-68v4-hmwv-f43h?

Authorization, Cookie and X-Api-Key are named among the headers that were forwarded to a cross-origin redirect target. The fix keeps only an allowlist of harmless headers for such redirects.

Does a redirect within the same site leak anything?

No change there. Same-origin redirects still pass the headers through, which is the intended behavior.

Is it exploited in the wild?

No source I read says so, and the entry has no CISA KEV flag. It has no CVE id.

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