{"id":"CVE-2026-54326","state":"PUBLISHED","title":"Pi: Potential XSS in HTML session exports via Markdown URL sanitization bypass","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.","publishedAt":"2026-06-23T19:26:35.875Z","updatedAt":"2026-06-24T13:09:14.395Z","severity":{"score":2.5,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["earendil-works pi"],"affected":[{"vendor":"earendil-works","product":"pi","versions":[{"version":">= 0.74.0, < 0.78.1","status":"affected"}]}],"references":["https://github.com/earendil-works/pi/security/advisories/GHSA-7v5m-pr3q-6453","https://github.com/earendil-works/pi/commit/6cb23f9b5d5b6d1747672f535b167d0d809ac010","https://github.com/earendil-works/pi/releases/tag/v0.78.1"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/54xxx/CVE-2026-54326.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-54326","state":"PUBLISHED","datePublished":"2026-06-23T19:26:35.875Z","dateUpdated":"2026-06-24T13:09:14.395Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-12T18:42:02.224Z"},"containers":{"cna":{"title":"Pi: Potential XSS in HTML session exports via Markdown URL sanitization bypass","descriptions":[{"lang":"en","value":"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":[{"vendor":"earendil-works","product":"pi","versions":[{"version":">= 0.74.0, < 0.78.1","status":"affected"}]}],"references":[{"url":"https://github.com/earendil-works/pi/security/advisories/GHSA-7v5m-pr3q-6453","name":"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","name":"https://github.com/earendil-works/pi/commit/6cb23f9b5d5b6d1747672f535b167d0d809ac010","tags":["x_refsource_MISC"]},{"url":"https://github.com/earendil-works/pi/releases/tag/v0.78.1","name":"https://github.com/earendil-works/pi/releases/tag/v0.78.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":2.5,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-06-23T19:26:35.875Z"},"source":{"advisory":"GHSA-7v5m-pr3q-6453","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-24T13:09:02.637895Z","id":"CVE-2026-54326","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-24T13:09:14.395Z"}}]}}}