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

GHSA-9f72-qcpw-2hxc: OpenClaw: Native prompt image auto-load did not honor tools.fs.workspaceOnly in sandboxed runs

highCVSS 4.0 8.9

OpenClaw up to 2026.2.23 ignored tools.fs.workspaceOnly=true when auto-loading images referenced in a prompt inside a sandbox. Prompt text could point at a mounted path outside the workspace, such as /agent/secret.png, and the image bytes went to a vision model. Upgrade the npm package openclaw to 2026.2.24 or later.

Published Mar 3, 2026 · Analysis Oct 31, 2026

What an attacker can do

OpenClaw's native prompt image ingestion (detectAndLoadPromptImages and loadImageFromRef) resolves and reads sandbox paths. The file tools assert that paths stay inside the workspace root when tools.fs.workspaceOnly is set. The image loader did not make that check.

So an operator who turned on workspaceOnly as a hardening step still had a gap. A prompt that names an out-of-workspace image path caused OpenClaw to read it and pass the bytes to a vision-capable model. The model's reply can then reveal the image contents, such as a screenshot of credentials or a scanned document.

The setting is not on by default, and exposure needs all four conditions: sandbox mode on, workspaceOnly=true, a mount outside the workspace reachable from the sandbox (the advisory uses /agent), and an active vision model path. The attacker needs to get text into the prompt, which can come from a user message or content the agent reads. Only image files are exposed, and only through the model's output. The CVSS 4.0 vector rates confidentiality high.

Who is affected

npm package openclaw, versions up to and including 2026.2.23. Only setups that combine sandbox mode, tools.fs.workspaceOnly=true, an extra mount outside the workspace and a vision-capable model are exposed. Check your version:

npm ls openclaw

openclaw

Ecosystem
npm
Affected
<= 2026.2.23
Fixed in
2026.2.24
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.2.24, which contains fix commit 370d115549c0dadace0902775eea0d5094aedfdc. The advisory was updated on 2026-02-25 to say this version is published on npm.

npm install [email protected]

The advisory gives no separate workaround. Until you upgrade, remove mounts outside the workspace from sandboxed runs.

How to tell if you were hit

Review agent transcripts and prompt logs for image references that point outside the workspace, for example paths under /agent or other mount points. Check which mounts your sandbox exposes. With Beam, agent file access is recorded and its rules can flag reads outside the project directory, which helps review this kind of access.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

In sandboxed runs, native prompt image auto-load did not honor tools.fs.workspaceOnly=true.

This optional hardening setting is not enabled by default. When operators enabled it, prompt text could still reference mounted out-of-workspace image paths (for example /agent/secret.png) and load those image bytes for vision-capable model input.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published npm version at triage time: 2026.2.23
  • Vulnerable version range: <= 2026.2.23
  • Patched version (planned next release): 2026.2.24

Conditions Required

This issue required all of the following:

  • sandbox mode enabled,
  • tools.fs.workspaceOnly=true configured,
  • an out-of-workspace mount path reachable from the sandbox (for example /agent),
  • vision-capable model path active for native prompt image loading.

Technical Details

Native prompt image ingestion (detectAndLoadPromptImages / loadImageFromRef) resolved and read sandbox paths but did not apply the same workspace-root assertion used by file tools when tools.fs.workspaceOnly was set.

Fix Commit(s)

  • 370d115549c0dadace0902775eea0d5094aedfdc

Verification

  • pnpm check
  • pnpm exec vitest run --config vitest.gateway.config.ts
  • pnpm test:fast

Release Process Note

patched_versions is pre-set to the planned next release (2026.2.24) so once npm release is available, this advisory only needs publish action.

OpenClaw thanks @tdjackey for reporting.

Publication Update (2026-02-25)

[email protected] is published on npm and contains the fix commit(s) listed above. This advisory now marks >= 2026.2.24 as patched.

Credited to tdjackey.

Questions

Is OpenClaw vulnerable if tools.fs.workspaceOnly is not set?

This advisory is about setups where the option is enabled and failed to apply to prompt image loading. The setting is off by default, and the advisory lists it as a required condition.

Which OpenClaw version fixes GHSA-9f72-qcpw-2hxc?

2026.2.24. Versions up to 2026.2.23 are listed as vulnerable.

What can an attacker read through this flaw?

Image files at paths reachable from the sandbox but outside the workspace. The bytes are loaded as vision-model input. The advisory does not describe reading non-image files.

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