CVE-2026-40518

published 17 Apr 2026 · updated 8 Nov 2026

ByteDance DeerFlow Path Traversal and Arbitrary File Write via Bootstrap Mode

7.1HighCVSS 7.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2176b2bbfccfce25ceee08318813f96d843a13fd.

ByteDance DeerFlow before commit 2176b2b contains a path traversal and arbitrary file write vulnerability in bootstrap-mode custom-agent creation where the agent name validation is bypassed. Attackers can supply traversal-style values or absolute paths as the agent name to influence directory creation and write files outside the intended custom-agent directory, potentially achieving arbitrary file write on the system subject to filesystem permissions.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
bytedance<2176b2bbfccfce25ceee08318813f96d843a13fd2176b2bbfccfce25ceee08318813f96d843a13fd

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40518 severity on Zeptric[![CVE-2026-40518](https://zeptric.io/badge/cve/CVE-2026-40518.svg)](https://zeptric.io/cve/CVE-2026-40518)