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

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

highCVSS 4.0 7.3

OpenClaw 2026.4.2 and earlier injects output from lower-trust background runtime processes into trusted System events, and local async exec completion skips the intended exec-event downgrade. Untrusted text can then steer later agent turns as prompt injection. The npm package `openclaw` is fixed in 2026.4.8.

Published Apr 9, 2026 · Analysis Oct 30, 2026

What an attacker can do

OpenClaw feeds events to the agent in turns. Events labelled System: carry high trust, so the model treats them like instructions from the system. Two paths broke that boundary (CWE-501, trust boundary violation). Output from background runtime processes was written into System events. And when a local async exec finished, its result was not downgraded to the lower-trust exec-event form that was intended.

In practice, any text a background process or a finished command prints can reach the agent dressed as a trusted system message. If that text comes from a web page, file or tool the attacker influences, they can plant instructions that affect later turns, such as asking the agent to run commands or reveal data. The CVSS 4.0 vector is local, low privilege, with high impact on confidentiality, integrity and availability, because a steered agent acts with the user's rights.

The advisory scopes this to OpenClaw as a user-controlled local assistant, not a multi-tenant service.

Who is affected

The npm package openclaw at 2026.4.2 and earlier is listed as affected. Check:

npm ls openclaw

For a global install use npm ls -g openclaw. Setups that run background processes or async exec from the agent are the ones in the attack path.

openclaw

Ecosystem
npm
Affected
<= 2026.4.2
Fixed in
2026.4.8
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.4.8.

npm install -g [email protected]

The verified fixed tree is commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5. No workaround is listed. Until you upgrade, avoid running background tasks that print untrusted content.

How to tell if you were hit

The advisory gives no log lines. Review agent transcripts for System: events that contain text that looks like instructions, and trace them back to the background process or exec that produced them. Look for agent actions that follow right after such output. Beam records agent shell commands, file access and MCP tool calls, and its rules flag risky ones, which helps check what an agent did after receiving injected text.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to tdjackey.

Questions

Is GHSA-gfmx-pph7-g46x a remote code execution bug?

Not directly. It is a trust boundary flaw that allows prompt injection into later agent turns. What follows depends on what the steered agent is allowed to do.

Which OpenClaw version fixes GHSA-gfmx-pph7-g46x?

2026.4.8. Version 2026.4.2 and earlier are listed as vulnerable.

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