# GHSA-gfmx-pph7-g46x: Impact Lower-trust background runtime output is injected into trusted `System:` events, and local async exec completion misses the intend

> Attackers can inject malicious prompts into trusted system events via lower-trust background output, potentially compromising agent execution.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 9 Apr 2026

## What is GHSA-gfmx-pph7-g46x?

GHSA-gfmx-pph7-g46x is a code injection vulnerability in openclaw, published on 9 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

## Impact

Lower-trust background runtime output is injected into trusted `System:` events, and local async exec completion misses the intended `exec-event` downgrade.

Lower-trust runtime/background output could be promoted into trusted System events, allowing prompt-injection into later agent turns.

OpenClaw is a user-controlled local assistant. This advisory is scoped to the OpenClaw trust model and does not assume a multi-tenant service boundary.

## Affected Packages / Versions

- Package: `openclaw` (npm)
- Affected versions: `<= 2026.4.2`
- Patched versions: `2026.4.8`

## Fix

The issue was fixed on `main` and is available in the patched npm version listed above. The verified fixed tree is commit `d7c3210cd6f5fdfdc1beff4c9541673e814354d5`.

## Verification

The fix was re-checked against `main` before publication, including targeted regression tests for the affected security boundary.

## Credits

Thanks @tdjackey for reporting.

## Which versions are affected by GHSA-gfmx-pph7-g46x?

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


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

## How do I fix GHSA-gfmx-pph7-g46x?

Upgrade openclaw to 2026.4.8 or later.

## Is GHSA-gfmx-pph7-g46x being exploited?

There is no known exploitation of GHSA-gfmx-pph7-g46x in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-gfmx-pph7-g46x and fix it if it is affected.

What it is: GHSA-gfmx-pph7-g46x is a code injection vulnerability in openclaw, published on 9 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-gfmx-pph7-g46x in the wild and no public exploit code.

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

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-gfmx-pph7-g46x/ (Markdown: https://insights.sbomify.com/GHSA-gfmx-pph7-g46x/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-gfmx-pph7-g46x

---
From sbomify Insights: https://insights.sbomify.com/GHSA-gfmx-pph7-g46x/
Summaries are generated and may contain mistakes; the official description above is the record.
