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

GHSA-846p-hgpv-vphc: OpenClaw: QQ Bot structured payloads could read arbitrary local files

mediumCVSS 4.0 6.9

OpenClaw 2026.4.1 and earlier lets a crafted QQ Bot structured media payload read local files from paths outside the QQ Bot media folders. The file goes out through the QQ Bot media-send path, so any file the OpenClaw process can read can leak. Upgrade the openclaw npm package to 2026.4.2.

Published Apr 7, 2026 · Analysis Oct 30, 2026

What an attacker can do

The QQ Bot extension handles structured payloads in extensions/qqbot/src/reply-dispatcher.ts, in handleStructuredPayload. A payload of type QQBOT_PAYLOAD with a media entry carries a path. Before the fix, that path could point anywhere on the host, not only inside QQ Bot's own media roots. OpenClaw read the file and sent it to the chat as media.

The advisory says the payload can come from prompt-influenced model output. An attacker who can get text in front of the agent, such as a chat message, a web page or a document the agent reads, can steer it to emit a payload that names a file such as an SSH key, a .env file or the OpenClaw config. The vector needs no privileges and no user interaction.

The result is exfiltration of any file readable by the OpenClaw process, delivered into a QQ conversation the attacker can see. The advisory calls it a real confidentiality bug on the host filesystem boundary. Teams that run an OpenClaw agent on QQ Bot with access to secrets on the same host are exposed.

Who is affected

openclaw on npm, version 2026.4.1 and earlier, with the QQ Bot extension enabled. Check the installed version:

npm ls openclaw

Use npm ls -g openclaw for a global install. Installations without QQ Bot do not use this path.

openclaw

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

How to fix it

Upgrade to openclaw 2026.4.2 or later:

npm install [email protected]

The fix is commit 2c45b06afdd6f7c621038b5419d8e661cff34a7f. Its message says it restricts structured payload local paths, narrows structured payload file access, adds path traversal tests and reduces payload log exposure. Inline data: URL images still work. We could not read the code diff, so the exact allowed roots are not stated here. The advisory lists no workaround.

How to tell if you were hit

Review QQ Bot conversation history for media messages that carry files you did not expect, such as configuration, key or credential files. Check what the agent read just before a media send, and whether chat or web content that it processed asked for a file. Beam records agent file access and shell commands on the host, which can show a read of a sensitive file followed by a QQ Bot send.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Before OpenClaw 2026.4.2, QQ Bot structured media payloads could read local files from attacker-chosen paths. A crafted structured payload could escape QQ Bot-owned media roots and cause arbitrary file reads on the host.

Impact

Prompt-influenced structured payload output could exfiltrate any host file readable by the OpenClaw process through the QQ Bot media-send path. This was a real confidentiality bug on the host filesystem boundary.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.4.1
  • Patched versions: >= 2026.4.2
  • Latest published npm version: 2026.4.1

Fix Commit(s)

  • 2c45b06afdd6f7c621038b5419d8e661cff34a7f — restrict QQ Bot structured payload local paths

Release Process Note

The fix is present on main and is staged for OpenClaw 2026.4.2. Publish this advisory after the 2026.4.2 npm release is live.

Thanks @feiyang666 of Tencent zhuque Lab (https://github.com/Tencent/AI-Infra-Guard) for reporting.

Credited to feiyang666.

Questions

Which OpenClaw version fixes this QQ Bot flaw?

2026.4.2. Versions up to and including 2026.4.1 are affected.

Does the attacker need access to the host?

No. The advisory ties it to prompt-influenced structured payload output. Content that steers the agent can make it name a local path.

Does the entry have a CVE?

No CVE id is listed for this advisory. It is tracked by its GitHub id, GHSA-846p-hgpv-vphc.

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