Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker discovers endpoint
-
DeliverySends HTTP request with traversal payload
-
ExploitServer processes unsanitized outputFile
-
ExecutionReads arbitrary file from disk
-
PersistReturns file contents in response
-
ImpactAttacker exfiltrates sensitive data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the vulnerable endpoint app/api/agent-output/route.ts to be accessible over the network (not restricted by firewall or authentication middleware). The outputFile parameter must be passed directly to file system operations without sanitization or path canonicalization checks. Exploitation succeeds against any path readable by the process user, which is typically unrestricted unless the application enforces a strict least-privilege security model. No special configuration or non-default settings are required - the vulnerability exists in the default code path. |
| Impact | The CVSS score of 5.3 reflects confidentiality impact (C:L) with no integrity or availability impact, indicating information disclosure rather than data modification or service disruption. The EPSS metric is not provided, limiting probabilistic exploitation assessment. However, the publicly available exploit code (POC:YES) and network-accessible vector (AV:N/AC:L/PR:N/UI:N) significantly increase practical risk despite the moderate CVSS score. The RL:X (release limit unavailable) and RC:R (reasonable confidence) ratings indicate the vulnerability is credibly documented but exploit maturity is uncertain. The rolling release model complicates patch tracking and increases the window of vulnerability for users who cannot identify specific affected versions. Real-world risk is elevated for deployments exposing this endpoint to untrusted networks, as remote attackers require no authentication or user interaction to attempt exploitation. The information disclosure impact is concerning if sensitive configuration files, credentials, or source code exist in accessible directories. |
| Exploit ScenarioDerived | An unauthenticated attacker discovers the /api/agent-output endpoint and sends an HTTP GET or POST request with a crafted outputFile parameter containing path traversal sequences (e.g., outputFile=../../../../etc/passwd or outputFile=/etc/shadow) to retrieve sensitive files from the host system. The server processes the unsanitized parameter directly in file operations, returning the contents of the targeted file in the HTTP response, allowing the attacker to exfiltrate configuration secrets, private keys, or application source code without authentication or user interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
Path traversal vulnerability in ErlichLiu claude-agent-sdk-master allows remote unauthenticated attackers to read arbitrary files by manipulating the outputFile parameter in app/api/agent-output/route.ts. The vulnerability has a CVSS score of 5.3 (low integrity impact) and publicly available exploit code exists, though the project uses rolling releases and the maintainer has not yet responded to disclosure.
RemediationAI
No vendor-released patch has been confirmed at the time of analysis, as the maintainer has not yet responded to the disclosure. Immediate remediation requires implementing input validation and sanitization in app/api/agent-output/route.ts to reject or normalize the outputFile parameter, stripping path traversal sequences (../, ..\ , absolute paths, etc.) and restricting file access to a whitelist of safe output directories. Apply a robust path canonicalization function (e.g., Node.js path.resolve() combined with checks ensuring the resolved path remains within the intended directory) before any file system operation. Additionally, run the application with minimal file system permissions and consider disabling or restricting HTTP access to the agent-output endpoint if it is not required for production use. Monitor the GitHub repository (https://github.com/ErlichLiu/claude-agent-sdk-master) for updates or alternative branches with fixes; if no response is forthcoming, consider forking and applying the fix locally or switching to a maintained alternative.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in a TypeScript/Node.js API route (app/api/agent-output/route.ts) that processes file output operations, likely within a Next.js application framework. The root cause is CWE-22 (improper limitation of a pathname to a restricted directory), where user-supplied input to the outputFile parameter is not properly validated or sanitized before being used in file system operations. An attacker can inject path traversal sequences (such as ../ or absolute paths) to escape the intended directory and access files outside the application's intended scope. The network attack vector (AV:N) and low attack complexity (AC:L) indicate the vulnerability can be exploited over HTTP/HTTPS without special conditions.
Know when Claude Agent Sdk Master gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security vulnerability has been detected in ErlichLiu claude-agent-sdk-master up to b185aa7ff0d864581257008077b4010fca1747bf. Affected by this vulnerability is an unknown functionality of the file app/api/agent-output/route.ts. The manipulation of the argument outputFile leads to path traversal. The attack may be initiated remotely. The exploit has been disclosed publicly and may be used. This product uses a rolling release model to deliver continuous updates. As a result, specific version information for affected or updated releases is not available. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-26007
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB