# GHSA-7xmq-g46g-f8pv: OpenClaw: Sandbox media TOCTOU could read files outside sandbox root

> An attacker can read files outside the sandbox root via a race condition in media handling, affecting OpenClaw users.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 2 Mar 2026

## What is GHSA-7xmq-g46g-f8pv?

GHSA-7xmq-g46g-f8pv is a path traversal vulnerability in openclaw, published on 2 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

### Summary
Sandbox media handling had a time-of-check/time-of-use gap: media paths could be validated first and read later through a separate path. A symlink retarget between those steps could cause reads outside `sandboxRoot`.

### Impact
Affected versions could permit host file reads outside the intended sandbox root in media attachment/image flows.

### Fix
Media reads now use consolidated root-scoped, boundary-safe read paths at use time, removing check/use drift across call sites.

### Affected and Patched Versions
- Affected: `<= 2026.2.26`
- Patched: `2026.3.1`

## Which versions are affected by GHSA-7xmq-g46g-f8pv?

2 open source packages ship an affected version, including openclaw.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `openclaw` | npm | All versions | 2026.3.1 |
| `openclaw` | npm | All versions | 2026.3.1 |

## How do I fix GHSA-7xmq-g46g-f8pv?

Upgrade openclaw to 2026.3.1 or later.

## Is GHSA-7xmq-g46g-f8pv being exploited?

There is no known exploitation of GHSA-7xmq-g46g-f8pv in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-7xmq-g46g-f8pv and fix it if it is affected.

What it is: GHSA-7xmq-g46g-f8pv is a path traversal vulnerability in openclaw, published on 2 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-7xmq-g46g-f8pv in the wild and no public exploit code.

Affected packages and fixed versions:
- openclaw (npm): affected all versions; fixed in 2026.3.1
- openclaw (npm): affected all versions; fixed in 2026.3.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-7xmq-g46g-f8pv/ (Markdown: https://insights.sbomify.com/GHSA-7xmq-g46g-f8pv/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-7xmq-g46g-f8pv

---
From sbomify Insights: https://insights.sbomify.com/GHSA-7xmq-g46g-f8pv/
Summaries are generated and may contain mistakes; the official description above is the record.
