Advisory record · GHSA-5vp3-3cg6-2rq3

JustHTML is vulnerable to XSS via code fence breakout in <pre> content

CVSS 5.1 MediumEPSS 0.0023 · 13th percentile

Published by the GitHub Advisory Database at 24 Mar 2026, 19:22 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
justhtmlPyPI<1.13.01.13.0
Identifiers
GHSA-5vp3-3cg6-2rq3 · CVE-2026-5389
Weakness (CWE)
CWE-79 · CWE-80
Published
24 Mar 2026
Updated
24 Aug 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

JustHTML versions before 1.13.0 are vulnerable to cross-site scripting through its to_markdown() output. When HTML containing attacker-controlled content inside a pre element is converted to Markdown, the code fence can be broken out of, so raw HTML ends up outside the fence. Applications that render this Markdown output without further sanitization may be exposed, depending on how their Markdown renderer handles raw HTML. Upgrade to JustHTML 1.13.0 or later. The source gives few details on the root cause.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.1 Medium 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0023, the 13th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:39 UTC First seen by agentprime
  2. 31 Oct 2026, 14:39 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.