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.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| SWE-agent | SWE-agent | 0 to <=1.1.0 |
References
- https://github.com/SWE-agent/SWE-agent/issues/1472 (issue-tracking)
- https://github.com/SWE-agent/SWE-agent (product)
- https://github.com/SWE-agent/SWE-agent/blob/main/sweagent/inspector/server.py (technical-description)
- https://www.vulncheck.com/advisories/swe-agent-trajectory-inspector-path-traversal-file-disclosure (third-party-advisory)
Generated from the official CVE List on 18 Aug 2026 07:05 UTC.