Advisory record · GHSA-r758-8hxw-4845

justhtml: Mutation XSS with custom foreign-namespace sanitization policies

CVSS 5.1 MediumEPSS 0.0026 · 18th percentile

Published by the GitHub Advisory Database at 8 Apr 2026, 00:06 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
justhtmlPyPI>=1.13.0, <1.14.01.14.0
Identifiers
GHSA-r758-8hxw-4845 · CVE-2026-5751
Weakness (CWE)
CWE-79
Published
8 Apr 2026
Updated
24 Aug 2026

Machine-written summary

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

The justhtml package, versions from 1.13.0 before 1.14.0, is vulnerable to mutation cross-site scripting when a custom sanitization policy keeps foreign namespaces such as SVG or MathML. Crafted input can sanitize into markup that looks safe but becomes active HTML when re-parsed by a browser or another parser. Upgrade to justhtml 1.14.0. Until then, keep drop_foreign_namespaces set to True and avoid allowlisting foreign or raw-text elements for untrusted input.

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.0026, the 18th 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.