GHSA-gfg9-5357-hv4c: OpenClaw: Webchat audio embedding could read local files without local-root containment
OpenClaw up to 2026.4.14 could read local audio-like files from the host and embed them in webchat replies. The webchat audio embedding helper skipped the local media root check that other media paths apply. If prompt injection or a malicious tool sets the reply's `mediaUrl` to a local path, the file's contents appear in the chat. Upgrade to openclaw 2026.4.15.
Published Apr 29, 2026 · Updated May 29, 2026 · Analysis Oct 29, 2026
What an attacker can do
A reply payload (ReplyPayload.mediaUrl) can point to media. For audio, the webchat embedding helper accepted an absolute local path or a file: URL, read the file and base64-encoded it into the webchat media response. Unlike the other media-serving paths, it never called a local-root containment check. A path outside the allowed media roots was read anyway.
The attacker does not talk to the filesystem directly. They influence what the agent or a tool returns, for example through prompt injection in a web page, a document or a tool result. That output sets mediaUrl, and the gateway reads the file. The advisory calls the model and tool output the delivery route, and the missing check the real failure.
The reach is narrow. The file must be readable by the gateway process, have an audio-like extension and fit under the webchat audio size cap. The contents land in the webchat assistant and media transcript path. This is not a general file API. The CVSS 4.0 vector reflects low confidentiality impact and needs low privileges. Teams that expose webchat sessions to untrusted content are the ones at risk.
Who is affected
The openclaw npm package at 2026.4.14 and earlier. The patched release is 2026.4.15, and 2026.4.21 also contains the fix. Exposure needs webchat sessions in which untrusted prompt or tool content can influence a reply's media URL.
npm ls openclawopenclaw
- Ecosystem
- npm
- Affected
- <= 2026.4.14
- Fixed in
- 2026.4.15
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.15 or later; 2026.4.21 is the latest public release named in the advisory:
npm install [email protected]The fix passes the applicable local media roots into the webchat audio path and calls assertLocalMediaAllowed before reading local audio. Current main adds a trustedLocalMedia gate so untrusted model or tool payloads cannot opt into local audio embedding. Before upgrading, avoid exposing webchat sessions to untrusted prompt or tool content that can shape reply media URLs.
How to tell if you were hit
Review webchat transcripts for audio media responses whose source is a local path or file: URL rather than a media URL you generated. Look in tool outputs and agent logs for mediaUrl values pointing at absolute paths on the gateway host, such as files with extensions like .mp3, .wav or .m4a outside your media directories. Also check for sessions that processed untrusted web pages or documents just before such a reply. The advisory names no log signature.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
OpenClaw deployments before 2026.4.15 could embed host-local audio files into webchat responses without applying the local media root containment check used by other media-serving paths.
If an attacker could influence an agent or tool-produced ReplyPayload.mediaUrl, the webchat audio embedding helper could resolve an absolute local path or file: URL, read an audio-like file under the size cap, and base64-encode it into the webchat media response. This crossed the model/tool-output boundary into a host file read. Prompt injection or malicious tool output is a delivery mechanism; the security boundary failure is the missing local-root containment check.
The impact is narrow: the file had to be readable by the gateway process, have an audio-like extension, and fit within the webchat audio size cap. The issue exposed contents into the webchat assistant/media transcript path; it was not a general remote filesystem API.
Affected Packages / Versions
- Package:
openclawon npm - Affected versions:
<= 2026.4.14 - Patched version:
2026.4.15
The latest public release, 2026.4.21, also contains the fix.
Patches
The public fix threads the applicable local media roots into the webchat audio embedding path and calls assertLocalMediaAllowed before local audio content is read. Current main also includes an additional trustedLocalMedia gate so untrusted model/tool payloads cannot opt into local audio embedding.
Fix commit:
6e58f1f9f54bca1fea1268ec0ee4c01a2af03dde
Workarounds
Upgrade to [email protected] or later. The latest public release, 2026.4.21, is fixed. Before upgrading, avoid exposing webchat sessions to untrusted prompt/tool content that can influence reply media URLs.
Credits
OpenClaw thanks @zsxsoft for reporting.
Credited to zsxsoft, KeenSecurityLab, qclawer.
Questions
- Can this read any file on the gateway host?
No. The file must be readable by the gateway, have an audio-like extension and fit within the webchat audio size cap. The advisory says it is not a general remote filesystem API.
- Does the attacker need access to the server?
No. Prompt injection or malicious tool output that sets
ReplyPayload.mediaUrlis enough to trigger the read.- Which version fixes it?
openclaw 2026.4.15. Release 2026.4.21 also includes the fix.
- Does it have a CVE id?
The advisory data lists none. It is tracked as GHSA-gfg9-5357-hv4c.
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
