{"answers":{"affected":"1 open source package ship an affected version, including local-operator.","exploited":"There is no known exploitation of PYSEC-2026-4010 in the wild and no public exploit code.","fix":"Upgrade local-operator to 0.47.5 or later.","what":"PYSEC-2026-4010 is a path traversal vulnerability in local-operator, published on 5 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for PYSEC-2026-4010 and fix it if it is affected.\n\nWhat it is: PYSEC-2026-4010 is a path traversal vulnerability in local-operator, published on 5 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of PYSEC-2026-4010 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- local-operator (PyPI): affected all versions; fixed in 0.47.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/PYSEC-2026-4010/ (Markdown: https://insights.sbomify.com/PYSEC-2026-4010/index.md)","id":"PYSEC-2026-4010","markdown":"https://insights.sbomify.com/PYSEC-2026-4010/index.md","name":"PYSEC-2026-4010","record":{"aliases":["GHSA-3xjw-9qpc-53mh"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"local-operator API","requires_auth":"none","summary":"Unauthenticated attackers can read arbitrary files from the server via path traversal in the local-operator API, exposing sensitive data.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"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.\n\nVersion 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.","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Arbitrary file read via workspace confinement bypass in local-operator /v1/chat/agents/{id}/edit","id":"PYSEC-2026-4010","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":1,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["0.47.5"],"introduced":["0"],"last_affected":[],"package":"local-operator","purl":"pkg:pypi/local-operator","source":"PYSEC-2026-4010"}],"products":null,"published":"2026-09-05","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Unauthenticated attackers can read arbitrary files from the server via path traversal in the local-operator API, exposing sensitive data.","url":"https://insights.sbomify.com/PYSEC-2026-4010/"}