Packages

LowVulnerabilityGHSA-7v5m-pr3q-6453CVE-2026-54326Published 16 Jun 2026

Pi Agent: Potential XSS in HTML session exports via Markdown URL sanitization bypass

Your version of @earendil-works/pi-coding-agent

Affected releases · @earendil-works/pi-coding-agent

  • 0.78.x0.78.0Fixed in 0.78.1
  • 0.77.x0.77.0No fix on this line yet
  • 0.76.x0.76.0No fix on this line yet
  • 0.75.x0.75.0 – 0.75.5No fix on this line yet
  • 0.74.x0.74.0 – 0.74.2No fix on this line yet

On 0.78.x, the newest line:

npm install @earendil-works/pi-coding-agent@0.78.1
Every release on a timeline
1.x
  1. Not affected

    1.0.0 – 1.6.0

    13 releases, latest

0.x
  1. Affected

    0.74.0 – 0.78.0

    12 releases

  2. Fixed

    0.78.1 – 0.99.2

    40 releases

65 stable releases of @earendil-works/pi-coding-agent, oldest to newest, one row per major.
Your version of @mariozechner/pi-coding-agent

Affected releases · @mariozechner/pi-coding-agent

  • 0.73.x0.73.0 – 0.73.1No fix on this line yet
  • 0.72.x0.72.0 – 0.72.1No fix on this line yet
  • 0.71.x0.71.0 – 0.71.1No fix on this line yet
  • 0.70.x0.70.0 – 0.70.6No fix on this line yet
  • 0.69.x0.69.0No fix on this line yet
  • 0.68.x0.68.0 – 0.68.1No fix on this line yet
  • 0.67.x0.67.0 – 0.67.68No fix on this line yet
  • 0.66.x0.66.0 – 0.66.1No fix on this line yet
  • 0.65.x0.65.0 – 0.65.2No fix on this line yet
  • 0.64.x0.64.0No fix on this line yet
  • 0.63.x0.63.0 – 0.63.2No fix on this line yet
  • 0.62.x0.62.0No fix on this line yet
  • 0.61.x0.61.0 – 0.61.1No fix on this line yet
  • 0.60.x0.60.0No fix on this line yet
  • 0.59.x0.59.0No fix on this line yet
  • 0.58.x0.58.0 – 0.58.4No fix on this line yet
  • 0.57.x0.57.0 – 0.57.1No fix on this line yet
  • 0.56.x0.56.0 – 0.56.3No fix on this line yet
  • 0.55.x0.55.0 – 0.55.4No fix on this line yet
  • 0.54.x0.54.0 – 0.54.2No fix on this line yet
  • 0.53.x0.53.0 – 0.53.1No fix on this line yet
  • 0.52.x0.52.0 – 0.52.12No fix on this line yet
  • 0.51.x0.51.0 – 0.51.6No fix on this line yet
  • 0.50.x0.50.0 – 0.50.9No fix on this line yet
  • 0.49.x0.49.0 – 0.49.3No fix on this line yet
  • 0.48.x0.48.0No fix on this line yet
  • 0.47.x0.47.0No fix on this line yet
  • 0.46.x0.46.0No fix on this line yet
  • 0.45.x0.45.0 – 0.45.7No fix on this line yet
  • 0.44.x0.44.0No fix on this line yet
  • 0.43.x0.43.0No fix on this line yet
  • 0.42.x0.42.0 – 0.42.5No fix on this line yet
  • 0.41.x0.41.0No fix on this line yet
  • 0.40.x0.40.0 – 0.40.1No fix on this line yet
  • 0.39.x0.39.0 – 0.39.1No fix on this line yet
  • 0.38.x0.38.0No fix on this line yet
  • 0.37.x0.37.0 – 0.37.8No fix on this line yet
  • 0.36.x0.36.0No fix on this line yet
  • 0.35.x0.35.0No fix on this line yet
  • 0.34.x0.34.0 – 0.34.2No fix on this line yet
  • 0.33.x0.33.0No fix on this line yet
  • 0.32.x0.32.0 – 0.32.3No fix on this line yet
  • 0.31.x0.31.0 – 0.31.1No fix on this line yet
  • 0.30.x0.30.0 – 0.30.2No fix on this line yet
  • 0.29.x0.29.0 – 0.29.1No fix on this line yet
  • 0.28.x0.28.0No fix on this line yet
  • 0.27.x0.27.5 – 0.27.9No fix on this line yet

No release fixes it yet, not even the latest, 0.73.1.

Every release on a timeline
  1. Not affected

    0.6.2 – 0.27.4

    120 releases

  2. Affected

    0.27.5 – 0.73.1

    151 releases, latest

271 stable releases of @mariozechner/pi-coding-agent, oldest to newest.

What happens

Potential XSS in HTML session exports via Markdown URL handling

Pi HTML exports render session Markdown into a static HTML file. Affected versions 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.

Impact

The realistic attack path is indirect. An attacker would need to get suitable Markdown into a session, for example through prompt injection that causes the model to include an unsafe link, or through other untrusted session content. The user would then need to export the session as HTML, open or share that file, and click the link.

If triggered, script runs in the exported document, not in pi or the user's shell. The main risk is limited disclosure of data embedded in that exported session file.

Affected versions

  • Affected: @mariozechner/pi-coding-agent >= 0.27.5, <= 0.73.1

  • Affected: @earendil-works/pi-coding-agent >= 0.74.0, < 0.78.1

  • Patched: @earendil-works/pi-coding-agent 0.78.1

The old @mariozechner/pi-coding-agent package scope has no patched release. It was renamed to @earendil-works/pi-coding-agent; users of the old scope should migrate to the new package and upgrade to version 0.78.1 or later.

Resolution

Version 0.78.1 sanitizes Markdown link and image URLs with an allow-list after stripping C0 control characters.

Recommendations

Upgrade @earendil-works/pi-coding-agent to version 0.78.1 or later. Regenerate shared HTML exports after upgrading if the underlying sessions contained untrusted content.

Timeline

  • 2026-05-29: Report received through GitHub Security Advisories

  • 2026-06-02: Fix committed

  • 2026-06-04: Fixed version 0.78.1 released

  • 2026-06-08: Advisory prepared for publication

Credits

Reported by Paul Urian and Cosmin Alexa of CrowdStrike.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.