Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 72%

CVE-2026-40518: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in bytedance deer-flow

0
High
VulnerabilityCVE-2026-40518cvecve-2026-40518cwe-22
Published: 04/17/2026 (04/17/2026, 16:43:42 UTC)
Source: CVE Database V5
Vendor/Project: bytedance
Product: deer-flow

Description

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.

CVSS v4.0

Score 7.1high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
bytedance/deer-flow
pkg:github/bytedance/deer-flow
Affected versions
=0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 10:28:37 UTC

Technical Analysis

CVE-2026-40518 is a path traversal and arbitrary file write vulnerability in ByteDance DeerFlow versions before commit 2176b2b. The issue arises from improper validation of the custom-agent name in bootstrap mode, allowing attackers to use path traversal sequences or absolute paths to influence directory creation and write files outside the designated custom-agent directory. This can result in arbitrary file writes on the affected system, subject to filesystem permissions. No official remediation or patch information is currently available.

Potential Impact

Successful exploitation allows an attacker with limited privileges to write files arbitrarily outside the intended directory structure, potentially leading to unauthorized file modification or code execution depending on the filesystem permissions and context in which DeerFlow runs.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to the affected functionality and monitor for suspicious activity related to custom-agent creation. Avoid running DeerFlow with elevated filesystem permissions where possible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-04-13T20:29:02.809Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69e26909bdfbbecc5968fd22

Added to database: 04/17/2026, 17:08:25 UTC

Last enriched: 07/15/2026, 10:28:37 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 164

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses