CVE-2026-26321: OpenClaw has a local file disclosure via sendMediaFeishu in Feishu extension
OpenClaw's Feishu extension, in versions before 2026.2.14, let `sendMediaFeishu` read a `mediaUrl` as a local file path. Anyone who can influence the agent's tool calls, directly or by prompt injection, can pass a path like `/etc/passwd` and have the file sent out through Feishu. Upgrade `openclaw` to 2026.2.14.
Published Feb 17, 2026 · Updated Feb 20, 2026 · Analysis Nov 1, 2026
What an attacker can do
sendMediaFeishu is the function that uploads media to Feishu. In affected versions it accepted a mediaUrl and, when the value was a filesystem path, read the file directly. It applied no local-root restriction. The agent therefore becomes a file-read primitive for whatever the OpenClaw process can open: system files, configuration, tokens and keys in the home directory.
The attacker does not need shell access. The advisory says they must be able to influence tool calls, either by invoking the tool themselves or by injecting instructions into content the agent reads, such as a chat message or a document. The agent then calls the Feishu media tool with a local path, and the file contents are delivered to the attacker's Feishu conversation as a media message.
The CVSS vector rates confidentiality impact as high, with no integrity or availability effect. It scores network access with no privileges or user interaction.
Who is affected
The openclaw npm package below 2026.2.14, with the Feishu extension in use. Check:
npm ls openclaw
openclaw --versionInstances where untrusted people can message the agent, or where it reads untrusted content, carry the most risk.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.2.14
- Fixed in
- 2026.2.14
- Check
npm ls openclaw
How to fix it
Upgrade to 2026.2.14 or newer:
npm install [email protected]Commit 5b4121d6011a48c71e747e3c18197f180b872c5d removes the direct local file read from this path and routes media loading through hardened helpers that enforce local-root restrictions. The advisory lists no workaround other than upgrading.
How to tell if you were hit
Review agent tool-call logs for Feishu media sends where mediaUrl is a filesystem path (starting with /, ~ or file:) instead of an http or https URL. Look in Feishu conversations for media messages containing system or configuration files. If you find any, treat the secrets those files contained as exposed. Beam records agent file access, so its logs help show which files a tool call read.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The Feishu extension previously allowed sendMediaFeishu to treat attacker-controlled mediaUrl values as local filesystem paths and read them directly.
Affected versions
< 2026.2.14
Patched versions
>= 2026.2.14
Impact
If an attacker can influence tool calls (directly or via prompt injection), they may be able to exfiltrate local files by supplying paths such as /etc/passwd as mediaUrl.
Remediation
Upgrade to OpenClaw 2026.2.14 or newer.
Notes
The fix removes direct local file reads from this path and routes media loading through hardened helpers that enforce local-root restrictions.
---
Fix commit 5b4121d60 confirmed on main and in v2026.2.14. Upgrade to openclaw >= 2026.2.14.
Credited to zpbrent.
Questions
- Can this be exploited through prompt injection?
Yes. The advisory says an attacker who can influence tool calls directly or through prompt injection can supply a path such as
/etc/passwdasmediaUrl.- Which version fixes CVE-2026-26321?
OpenClaw 2026.2.14. Earlier versions are affected.
- Does this affect deployments without the Feishu extension?
The advisory describes the flaw in the Feishu extension's
sendMediaFeishu, so installs that do not use it are not described as exposed.
References
Read for this analysis:
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 entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
