# CVE-2026-56692: nanocoai NanoClaw symlink following in forwardAttachedFiles

Source: https://junglewise.ai/threats/cve-2026-56692-nanocoai-nanoclaw-symlink-following-in-forwardattachedfiles  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-23. Updated: 2026-06-23  
License: CC BY 4.0 with a link back

CVE-2026-56692 · Severity: medium · CVSS 5.5 · Published 2026-06-23

NanoClaw, a tool used for managing AI agents, contains a security flaw in how it handles file transfers between agents. A malicious or compromised agent can trick the host system into reading and copying sensitive files from the host server by using symbolic links (shortcuts). This could allow an attacker to steal private data or configuration files from the underlying server where the agents are running.

## Quick answers

**Is CVE-2026-56692 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-56692 being exploited in the wild.

**How severe is CVE-2026-56692?** Medium severity, with a CVSS score of 5.5, published 23 June 2026.

**Which products and versions are affected?** nanocoai NanoClaw < 2.1.17.

**Is there a fix for CVE-2026-56692?** A patch was published on 2026-06-09: Fix merged into main branch Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-56692 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-56692?** Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A symlink following vulnerability (CWE-59) exists in the `forwardAttachedFiles` function within `src/modules/agent-to-agent/agent-route.ts`. The application validated attachment filenames using only `isSafeAttachmentName` before performing a file copy via `fs.copyFileSync`. Because `fs.copyFileSync` follows symbolic links and the source directory is writable by the agent container, a malicious agent can create a symlink pointing to an arbitrary file on the host. When the host attempts to forward the 'attachment' to another agent, it dereferences the symlink and copies the target file's contents into the destination agent's inbox. The fix, introduced in version 2.1.17, implements `lstat` and `realpathSync` checks to ensure attachments are regular files contained within the intended directory.

## Affected products

- nanocoai NanoClaw < 2.1.17

## Timeline

- 2026-05-14: disclosed: Pull request submitted by researcher
- 2026-06-09: patched: Fix merged into main branch
- 2026-06-23: advisory: CVE published and NVD record created

## References

- [https://github.com/nanocoai/nanoclaw/commit/28032bc0eca76c91fb3d8be0013e8bcaf2f5aeae](https://github.com/nanocoai/nanoclaw/commit/28032bc0eca76c91fb3d8be0013e8bcaf2f5aeae)
- [https://github.com/nanocoai/nanoclaw/pull/2468](https://github.com/nanocoai/nanoclaw/pull/2468)
- [https://www.vulncheck.com/advisories/nanoclaw-arbitrary-file-read-via-symlink-following-in-forwardattachedfiles](https://www.vulncheck.com/advisories/nanoclaw-arbitrary-file-read-via-symlink-following-in-forwardattachedfiles)
