GHSA-3xjw-9qpc-53mh json
Arbitrary file read via workspace confinement bypass in local-operator /v1/chat/agents/{id}/edit
published 2mo ago modified last mo. also PYSEC-2026-4010
- cvss
- 7.5
- version 3.1, OSV
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
The `/v1/chat/agents/{agent_id}/edit` endpoint in local-operator versions before 0.47.5 resolves the caller-supplied `file_path` with `expanduser().resolve()` and reads it without checking that it lies inside the agent's workspace. An unauthenticated client with network access to the API can supply an absolute path or a path containing traversal sequences and obtain the contents of any file readable by the server process, which are placed in the model prompt and returned in the response.
Version 0.47.5 resolves server-side reads within the agent's configured workspace and rejects canonical paths outside it (including symlink and junction escapes) before any model call, adds an optional `file_content` request field so clients can submit a buffer without host path resolution, and binds `lop serve` to 127.0.0.1 by default.
Patch / fix
- pypi local-operator 0.47.5
Is GHSA-3xjw-9qpc-53mh in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | local-operator | <0.47.5 |
0.47.5 |
Classification
References
-
github.com
/damianvtran/local-operator/pull/643
patch
-
github.com
/damianvtran/local-operator/commit/29fc4c68a3ed1d238b8abf6b6a6136a3361416a5
patch
-
github.com
/damianvtran/local-operator/security/advisories/GHSA-3xjw-9qpc-53mh
advisory
-
github.com
/damianvtran/local-operator/releases/tag/v0.47.5
web
-
pypi.org
/project/local-operator/
package
Sources
- OSV PYSEC-2026-4010
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.