{"answers":{"affected":"4 open source packages ship an affected version, including @earendil-works/pi-coding-agent and @mariozechner/pi-coding-agent.","exploited":"There is no known exploitation of CVE-2026-54327 in the wild and no public exploit code.","fix":"Upgrade @earendil-works/pi-coding-agent to 0.78.1 or later.","what":"CVE-2026-54327 is a low-severity vulnerability in earendil-works pi, published on 23 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-54327 and fix it if it is affected.\n\nWhat it is: CVE-2026-54327 is a low-severity vulnerability in earendil-works pi, published on 23 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-54327 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @earendil-works/pi-coding-agent (npm): affected from 0.74.0; fixed in 0.78.1\n- @earendil-works/pi-coding-agent (npm): affected from 0.74.0; fixed in 0.78.1\n- @mariozechner/pi-coding-agent (npm): affected from 0.28.0 up to 0.73.1; no fix listed\n- @mariozechner/pi-coding-agent (npm): affected from 0.28.0 up to 0.73.1; no fix listed\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/CVE-2026-54327/ (Markdown: https://insights.sbomify.com/CVE-2026-54327/index.md)","id":"CVE-2026-54327","markdown":"https://insights.sbomify.com/CVE-2026-54327/index.md","name":"CVE-2026-54327","record":{"aliases":["GHSA-r95r-rj6r-c39x","MINI-6cq8-pppp-94wq"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Terminal coding harness","requires_auth":"low_privilege","summary":"A race condition in Pi's credential storage allows local attackers to read API keys and OAuth tokens during file write operations.","user_interaction":"required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":2.2,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"description":"Pi is a minimal terminal coding harness. From 0.74.0 until 0.78.1, Pi stored API keys and OAuth credentials in auth.json. A race condition in the file write path could briefly create or rewrite this file with permissions derived from the process umask before tightening the file to owner-only permissions. This vulnerability is fixed in 0.78.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Pi: Race condition in auth.json writes could expose stored credentials","id":"CVE-2026-54327","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"race_condition","year":"2026"},"n_packages":4,"n_references":3,"next":{"headline":"Pi: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts","id":"CVE-2026-54328"},"packages":[{"ecosystem":"npm","fixed":["0.78.1"],"introduced":["0.74.0"],"last_affected":[],"package":"@earendil-works/pi-coding-agent","purl":null,"source":"GHSA-r95r-rj6r-c39x"},{"ecosystem":"npm","fixed":["0.78.1"],"introduced":["0.74.0"],"last_affected":[],"package":"@earendil-works/pi-coding-agent","purl":"pkg:npm/%40earendil-works/pi-coding-agent","source":"GHSA-r95r-rj6r-c39x"},{"ecosystem":"npm","fixed":[],"introduced":["0.28.0"],"last_affected":["0.73.1"],"package":"@mariozechner/pi-coding-agent","purl":null,"source":"GHSA-r95r-rj6r-c39x"},{"ecosystem":"npm","fixed":[],"introduced":["0.28.0"],"last_affected":["0.73.1"],"package":"@mariozechner/pi-coding-agent","purl":"pkg:npm/%40mariozechner/pi-coding-agent","source":"GHSA-r95r-rj6r-c39x"}],"prev":{"headline":"Pi: Potential XSS in HTML session exports via Markdown URL sanitization bypass","id":"CVE-2026-54326"},"products":["pi"],"published":"2026-06-23","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-26","vendors":["earendil-works"]},"summary":"A race condition in Pi's credential storage allows local attackers to read API keys and OAuth tokens during file write operations.","url":"https://insights.sbomify.com/CVE-2026-54327/"}