CVE-2026-54326 Pi: Potential XSS in HTML session exports via Markdown URL sanitization bypass
LowCVSS 2.5
EPSS 0.17%
- 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 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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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.27.5, <= 0.73.1 | after 0.73.1 | Fixed |
| earendil-works pi | = >= 0.74.0, < 0.78.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| earendil-works pi | = >= 0.74.0, < 0.78.1 | No fix listed |
| mariozechner @mariozechner/pi-coding-agent(npm) | >= 0.27.5, <= 0.73.1 | No fix listed |
| earendil-works @earendil-works/pi-coding-agent(npm) | >= 0.74.0, < 0.78.1 | 0.78.1 |
References
- https://github.com/earendil-works/pi/security/advisories/GHSA-7v5m-pr3q-6453 vendor-advisory
- https://github.com/earendil-works/pi/commit/6cb23f9b5d5b6d1747672f535b167d0d809ac010 patch
- https://github.com/earendil-works/pi/releases/tag/v0.78.1
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product