Skip to content

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

LowCVSS 2.2 EPSS 0.09%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
earendil-works @earendil-works/pi-coding-agent(npm) >= 0.74.0, < 0.78.1 0.78.1 Fixed
mariozechner @mariozechner/pi-coding-agent(npm) >= 0.28.0, <= 0.73.1 after 0.73.1 Fixed
earendil-works pi = >= 0.74.0, < 0.78.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
earendil-works pi = >= 0.74.0, < 0.78.1 No fix listed
mariozechner @mariozechner/pi-coding-agent(npm) >= 0.28.0, <= 0.73.1 No fix listed
earendil-works @earendil-works/pi-coding-agent(npm) >= 0.74.0, < 0.78.1 0.78.1

References