# CVE-2026-54327: Pi: Race condition in auth.json writes could expose stored credentials

- Severity: Low 2.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.07%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-06-17T13:54:37.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-r95r-rj6r-c39x
- Weaknesses: CWE-367, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- earendil-works pi: >= 0.74.0, < 0.78.1
- @mariozechner/pi-coding-agent (npm): from 0.28.0 up to 0.73.1
- @earendil-works/pi-coding-agent (npm): from 0.74.0 before 0.78.1

## Every score

- GitHub_M: CVSS:3.1 2.2 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 2.2 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N`

## References

- <https://github.com/earendil-works/pi/security/advisories/GHSA-r95r-rj6r-c39x> (web)
- <https://github.com/earendil-works/pi/commit/135fb545f99106a4a249274f129b90bc0a77d347> (web)
- <https://github.com/earendil-works/pi/releases/tag/v0.78.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54327> (advisory)
- <https://github.com/earendil-works/pi> (package)

## Sources

- CVE List: [CVE-2026-54327](https://www.cve.org/CVERecord?id=CVE-2026-54327), CVE Terms of Use, modified 2026-06-26
- GitHub Advisory Database: [GHSA-r95r-rj6r-c39x](https://github.com/advisories/GHSA-r95r-rj6r-c39x), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-54327](https://nvd.nist.gov/vuln/detail/CVE-2026-54327), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54327 · Whole record: https://cve.day/CVE-2026-54327.json · Rebuilt by cve.day 2026-11-25T22:59:25.531Z
