CVE-2026-54326 Details
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.
A cross-site scripting vulnerability has been identified in Pi, a minimal terminal coding harness, affecting versions 0.74.0 prior to 0.78.1. The issue arises in the HTML export feature, which converts session Markdown into static HTML files. Affected versions did not consistently filter unsafe URL schemes in Markdown links and images. In versions with some scheme filtering, C0 control characters could bypass the checks, as browsers normalize these characters before navigation. This vulnerability allows for the injection of malicious scripts that could be executed when the exported HTML file is opened.
Users should upgrade to Pi version 0.78.1 or later, which addresses the vulnerability by properly sanitizing Markdown link and image URLs with an allow-list after removing control characters. If the HTML export feature was used to share sessions containing untrusted content, it is recommended to regenerate the export after upgrading.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 23, 2026CISA-ADP
Assessed Jun 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/earendil-works/pi/commit/6cb23f9b5d5b6d1747672f535b167d0d809ac010 | [email protected] | Source CodeVendor |
| https://github.com/earendil-works/pi/releases/tag/v0.78.1 | [email protected] | Release NotesVendor |
| https://github.com/earendil-works/pi/security/advisories/GHSA-7v5m-pr3q-6453 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| earendil-works/pi-coding-agent | All versions |
CPE
Remediation
| |
| mariozechner/pi-coding-agent | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 24, 2026 | CVE Modified | CISA-ADP |
| Jun 23, 2026 | New CVE Received | [email protected] |
Volerion