Description
SWE-agent's trajectory inspector (sweagent inspector), confirmed in v1.1.0, is an HTTP server that joins request paths to the trajectory directory in its /trajectory/ handler without rejecting parent-directory ('..') references, bypassing the built-in path sanitization. The server binds all interfaces (0.0.0.0), applies wildcard CORS, and requires no authentication. An unauthenticated network client (or a malicious web page via CORS) can use path traversal sequences to read files outside the intended directory. Because the read sink parses targets as trajectory JSON, disclosure is constrained to JSON files shaped like a trajectory, which can contain repository contents, command output, and secrets/API keys.
Published: 2026-08-17
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SWE-agent’s trajectory inspector implements an HTTP server that serves files from a trajectory directory by concatenating request paths without filtering parent directory references. The server accepts any HTTP request on all interfaces, uses wildcard CORS headers, and does not require authentication. As a result, an attacker can send a path traversal sequence in the request URL to read arbitrary JSON files from the filesystem. Because the server parses only trajectory‑formatted JSON, the disclosure is limited to files that match this format, yet such files can contain repository contents, command output, and sensitive credentials. The vulnerability enables confidential data exposure without needing credentials.

Affected Systems

The affected product is SWE‑agent, specifically the trajectory inspector component confirmed in version 1.1.0. No other affected versions are listed in the available data, but the vulnerability existed at that release. Systems running SWE‑agent that expose the /trajectory/ endpoint over the network, especially those with unrestricted access or allowing external web pages to trigger requests via CORS, are impacted.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity, and although an EPSS score is unavailable, the attack vector is straightforward: an unauthenticated client can request a crafted URL, bypassing path restrictions. The vulnerability is not listed in the CISA KEV catalog, but the lack of authentication and wildcard CORS greatly lower the barrier to exploitation. Attackers could read sensitive JSON files with repository or credential data by targeting the server’s open HTTP endpoint.

Generated by OpenCVE AI on August 17, 2026 at 21:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SWE‑agent to a version that includes the path‑sanitization fix for the trajectory inspector
  • Configure the service to bind only to trusted interfaces or firewall access to the /trajectory/ endpoint
  • Disable wildcard CORS headers or restrict allowed origins to trusted domains
  • Validate and canonicalize request paths on the server side to reject '..' references before file access

Generated by OpenCVE AI on August 17, 2026 at 21:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 13:00:00 +0000

Type Values Removed Values Added
First Time appeared Swe-agent
Swe-agent swe-agent
Vendors & Products Swe-agent
Swe-agent swe-agent

Tue, 18 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 17 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
Description SWE-agent's trajectory inspector (sweagent inspector), confirmed in v1.1.0, is an HTTP server that joins request paths to the trajectory directory in its /trajectory/ handler without rejecting parent-directory ('..') references, bypassing the built-in path sanitization. The server binds all interfaces (0.0.0.0), applies wildcard CORS, and requires no authentication. An unauthenticated network client (or a malicious web page via CORS) can use path traversal sequences to read files outside the intended directory. Because the read sink parses targets as trajectory JSON, disclosure is constrained to JSON files shaped like a trajectory, which can contain repository contents, command output, and secrets/API keys.
Title SWE-agent Trajectory Inspector Path Traversal File Disclosure
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Swe-agent Swe-agent
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-18T12:55:51.320Z

Reserved: 2026-08-17T19:59:23.461Z

Link: CVE-2026-75482

cve-icon Vulnrichment

Updated: 2026-08-18T12:55:46.331Z

cve-icon NVD

Status : Received

Published: 2026-08-17T21:16:50.833

Modified: 2026-08-18T13:17:42.627

Link: CVE-2026-75482

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T12:39:31Z

Weaknesses
  • CWE-22

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