Vulnerability · Published Jun 23, 2026 · Assigned by GitHub_M

CVE-2026-54326Pi: Potential XSS in HTML session exports via Markdown URL sanitization bypass

Low 2.5

In plain English

A low-severity cross-site scripting in pi from earendil-works. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)2.5Low
Exploit odds (30 days)0.2%top 93.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Pi is a minimal terminal coding harness. From 0.74.0 until 0.78.1, Pi HTML exports render session Markdown into a static HTML file. It did not consistently reject unsafe Markdown link and image URL schemes. In versions with scheme filtering, C0 control characters in the URL scheme could bypass the check because browsers normalize those characters before navigation. This vulnerability is fixed in 0.78.1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@earendil-works/pi-coding-agent0.78.1GHSA-7v5m-pr3q-6453
npm@mariozechner/pi-coding-agentno fix listedGHSA-7v5m-pr3q-6453

Affected products (as reported)

VendorProductVersions
earendil-works pi >= 0.74.0, < 0.78.1

Weakness: CWE-79 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

References