Junglewise Threat Intelligence

CVE-2026-54325: earendil-works Pi arbitrary code execution via untrusted project extensions

CVE-2026-54325 · Severity: medium · CVSS 4.4 · Published 2026-06-23

Technologies: Earendil-Works Pi-Coding-Agent, @earendil-works/pi-coding-agent (npm). Vendors: Earendil-Works, npm.

Executive brief

Pi is a terminal-based tool used by developers for coding tasks. In versions before 0.79.0, the tool would automatically load and execute configuration files and extensions found within a project's directory without asking for the user's permission. If a developer opens a malicious repository using Pi, an attacker could execute arbitrary code on the developer's machine with the same permissions as the Pi application.

Technical details

Pi, a terminal coding harness, suffers from an untrusted control sphere vulnerability (CWE-829). Prior to version 0.79.0, the application automatically loaded project-local resources, including TypeScript or JavaScript modules (extensions), from the '.pi' directory of the current working tree. Because these modules are executed within the Pi process without a trust boundary or user confirmation, a local attacker who can convince a user to run Pi within a malicious repository can achieve arbitrary code execution. The fix introduced in version 0.79.0 implements a trust gating mechanism that requires explicit user approval before loading project-local settings or executing extensions.

Affected products

  • earendil-works Pi (coding-agent) < 0.79.0

Timeline

  • 2026-06-23: advisory: NVD publication date
  • 2026-06-08: patched: Fixes for project trust gating committed to repository

References

Related threats