{"id":"CVE-2026-54326","published":"2026-06-23T19:26:35Z","modified":"2026-06-24T13:09:14Z","title":"Pi: Potential XSS in HTML session exports via Markdown URL sanitization bypass","vendor":"earendil-works","product":"pi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00172,"percentile":0.03895,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/earendil-works/pi/security/advisories/GHSA-7v5m-pr3q-6453","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/earendil-works/pi/commit/6cb23f9b5d5b6d1747672f535b167d0d809ac010","tags":["x_refsource_MISC"]},{"url":"https://github.com/earendil-works/pi/releases/tag/v0.78.1","tags":["x_refsource_MISC"]}],"priority":{"score":2.5,"factors":[{"name":"EPSS percentile","points":0.78},{"name":"CVSS severity","points":1.75}]},"vendorSlug":"earendil-works","affectedVersions":[{"vendor":"earendil-works","product":"pi","versions":[">= 0.74.0, < 0.78.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-24T13:09:02.637895Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@mariozechner/pi-coding-agent","vulnerableRanges":[">=0.27.5, <=0.73.1"],"patched":[],"from":["GHSA-7v5m-pr3q-6453"],"provenance":"source"},{"ecosystem":"npm","package":"@earendil-works/pi-coding-agent","vulnerableRanges":[">=0.74.0, <0.78.1"],"patched":["0.78.1"],"from":["GHSA-7v5m-pr3q-6453"],"provenance":"source"}],"summary":{"text":"Pi, a minimal terminal coding harness made by earendil-works, has a cross-site scripting flaw in its HTML session export feature, where Markdown link and image URLs were not consistently filtered for unsafe schemes, and in versions that did filter schemes, C0 control characters in the scheme could slip past the check. An attacker who can get a user to open a crafted exported session file, which requires user interaction and local access to the file, could run script in the context of that exported page, with the attack complexity being high.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:29Z"},"euvd":{"id":"EUVD-2026-38581","exploited":false,"provenance":"source"}}