Skip to content
LowVulnerabilityLLM-specific

GHSA-7v5m-pr3q-6453: Pi Agent: Potential XSS in HTML session exports via Markdown URL sanitization bypass

Published
Record updated
View JSON
Affected
  • @earendil-works/pi-coding-agent >= 0.74.0, < 0.78.1, fixed in 0.78.1, released June 4, 2026, 12 days before disclosure
  • @mariozechner/pi-coding-agent >= 0.27.5, <= 0.73.1
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

Affected versions of the Pi coding agent's HTML session export did not consistently reject unsafe Markdown link and image URL schemes, and in versions with scheme filtering, C0 control characters in the scheme could bypass the check. An attacker who gets crafted Markdown into a session, for example via prompt injection, can cause script to run in the exported HTML file when a user opens it and clicks the link, risking disclosure of data embedded in that session file.

Mitigation

Upgrade `@earendil-works/pi-coding-agent` to version 0.78.1 or later, which sanitizes Markdown link and image URLs with an allow-list after stripping C0 control characters. Regenerate shared HTML exports after upgrading if the underlying sessions contained untrusted content. Users of the old `@mariozechner/pi-coding-agent` scope should migrate to the new package, since no patched release exists under that scope.