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

CVE-2026-41363: OpenClaw: Feishu extension resolveUploadInput bypasses file-system sandbox and allows arbitrary file reads via upload_image

mediumCVSS 4.0 6.0 · 3.1 5.3GHSA-qf48-qfv4-jjm9

OpenClaw's Feishu extension read local files for upload_image and upload_file without enforcing the localRoots sandbox. A tool caller limited to workspace paths could send arbitrary host files out through Feishu. OpenClaw 2026.2.6 through 2026.3.24 is affected. Upgrade to 2026.3.28.

Published Mar 31, 2026 · Updated May 8, 2026 · Analysis Oct 31, 2026

What an attacker can do

The Feishu docx tool resolves upload inputs in resolveUploadInput, in extensions/feishu/src/docx.ts. For local file paths it called fs.readFile directly. That bypassed the file-system sandbox that restricts agent tools to localRoots such as the workspace and temp directories (CWE-22, CWE-863).

A caller that is meant to touch only sandboxed paths could pass any readable path, for example a config or credentials file, as the input of upload_image. OpenClaw then read the file and handed it to the Feishu upload path, so the content left the host inside a Feishu document or image. The attacker needs the ability to invoke the tool: a low-privilege caller, or a prompt-injected agent that has the Feishu tools. The CVSS vector rates complexity high and confidentiality impact high, with no integrity or availability impact. Files readable by the OpenClaw process, such as API keys, tokens and SSH keys, are the realistic targets.

Who is affected

The openclaw npm package from 2026.2.6 through 2026.3.24, with the Feishu extension enabled and its docx upload actions (upload_image, upload_file) available to the caller. Versions before 2026.2.6 are not listed as affected. Check the version:

npm ls openclaw
openclaw --version

openclaw

Ecosystem
npm
Affected
>= 2026.2.6, <= 2026.3.24
Fixed in
2026.3.28
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.28 or later:

npm install -g [email protected]

Commit 764394c78b ("fix: enforce localRoots sandbox on Feishu docx upload file reads") replaces the direct fs.readFile calls in resolveUploadInput with the runtime's loadWebMedia loader. It applies the default sandbox roots (tmp, media, workspace, sandboxes), and passes maxBytes with optimizeImages set to false. Traversal paths such as /etc/passwd are now rejected. The advisory gives no workaround. Until you upgrade, remove the Feishu docx upload actions from agents that handle untrusted input.

How to tell if you were hit

Review agent and tool-call logs for upload_image or upload_file calls whose path is outside the workspace or temp directories, for example /etc, ~/.ssh, ~/.aws or the OpenClaw config file. Check Feishu documents for uploaded files or images you do not recognize, and Feishu audit logs for unusual uploads.

Beam records agent file access and MCP tool calls, and its rules can flag reads of sensitive paths, which would show this kind of out-of-sandbox read.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Feishu upload path resolution could read files outside the configured localRoots sandbox before handing them to the upload path.

Impact

A tool caller constrained to workspace or localRoots paths could exfiltrate arbitrary host files through Feishu upload actions.

Affected Component

extensions/feishu/src/docx.ts

Fixed Versions

  • Affected: >= 2026.2.6, <= 2026.3.24
  • Patched: >= 2026.3.28
  • Latest stable 2026.3.28 contains the fix.

Fix

Fixed by commit 764394c78b (fix: enforce localRoots sandbox on Feishu docx upload file reads).

Credited to ADumpling.

Questions

Is OpenClaw before 2026.2.6 affected by CVE-2026-41363?

The advisory lists the affected range as 2026.2.6 through 2026.3.24. Earlier versions are outside that range, but upgrading to 2026.3.28 is still sensible.

What can an attacker read?

Any file the OpenClaw process can read, because the localRoots check was skipped. The file goes out through the Feishu upload path.

Which version contains the fix?

2026.3.28, through commit 764394c78b, which routes reads through the sandboxed loadWebMedia loader.

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