CVE-2026-7235

ErlichLiu claude-agent-sdk-master route.ts path traversal

Published Apr 28, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability in ErlichLiu claude-agent-sdk-master allows an attacker to manipulate the outputFile argument in the route located at app/api/agent-output/route.ts, resulting in path traversal. This flaw can lead to unauthorized reading or writing of arbitrary files on the server, exposing sensitive configuration or source code files. The weakness is identified as CWE-22, indicating improper validation of file paths.

Affected Systems

The affected product is ErlichLiu's claude-agent-sdk-master. No precise version information is available beyond a commit identifier (b185aa7ff0d864581257008077b4010fca1747bf); however, any release prior to a discovered fix is potentially vulnerable due to the repository's rolling‑release model. Users should therefore treat all current releases as at risk until an update is issued.

Risk and Exploitability

The CVSS score of 6.9 reflects a moderate severity, and the EPSS score is not available, meaning current exploit probability data are unknown. The attack may be initiated remotely, as stated in the description. Based on the description, it is inferred that no authentication is required to manipulate the outputFile parameter, allowing path traversal. Because the exploit has already been publicly disclosed, the risk of exploitation is tangible if no mitigation is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to the latest version of claude-agent-sdk-master once the repository author releases a patch resolving the path traversal issue.
  • If a patch is not yet available, restrict the outputFile parameter by validating against a whitelist of allowed directories and rejecting any requests containing directory traversal sequences such as "..".
  • Limit access to the agent‑output API endpoint at the network or firewall level so that only trusted IP addresses or internal networks can reach it until a fix is deployed.

Generated by OpenCVE AI on April 28, 2026 at 19:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Erlichliu
Erlichliu claude-agent-sdk-master
Vendors & Products Erlichliu
Erlichliu claude-agent-sdk-master
Type Values Removed Values Added
Description 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.
Title ErlichLiu claude-agent-sdk-master route.ts path traversal
Weaknesses CWE-22
References
Metrics cvssV2_0

{'score': 5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:N/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 6.9, 'vector': '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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Apr 28, 2026, 2:33 PM
Reserved
Apr 27, 2026, 5:05 PM
Status
Deferred
Published
Apr 28, 2026, 8:16 AM
Modified
Oct 26, 2026, 10:10 PM