# CVE-2026-54326: Pi: Potential XSS in HTML session exports via Markdown URL sanitization bypass

- Severity: Low 2.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-16T23:43:15.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-7v5m-pr3q-6453
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- earendil-works pi: >= 0.74.0, < 0.78.1
- @mariozechner/pi-coding-agent (npm): from 0.27.5 up to 0.73.1
- @earendil-works/pi-coding-agent (npm): from 0.74.0 before 0.78.1

## Every score

- GitHub_M: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`

## References

- <https://github.com/earendil-works/pi/security/advisories/GHSA-7v5m-pr3q-6453> (web)
- <https://github.com/earendil-works/pi/commit/6cb23f9b5d5b6d1747672f535b167d0d809ac010> (web)
- <https://github.com/earendil-works/pi/releases/tag/v0.78.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54326> (advisory)
- <https://github.com/earendil-works/pi> (package)

## Sources

- CVE List: [CVE-2026-54326](https://www.cve.org/CVERecord?id=CVE-2026-54326), CVE Terms of Use, modified 2026-06-24
- GitHub Advisory Database: [GHSA-7v5m-pr3q-6453](https://github.com/advisories/GHSA-7v5m-pr3q-6453), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-54326](https://nvd.nist.gov/vuln/detail/CVE-2026-54326), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54326 · Whole record: https://cve.day/CVE-2026-54326.json · Rebuilt by cve.day 2026-11-25T22:59:25.530Z
