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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @earendil-works/pi-coding-agent | 0.78.1 | GHSA-7v5m-pr3q-6453 |
| npm | @mariozechner/pi-coding-agent | no fix listed | GHSA-7v5m-pr3q-6453 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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