Advisory record · GHSA-qvc2-mg72-jjhx

JustHTML Affected by Mutation XSS via Literal Text Serialization in Raw Text Elements (style/script)

CVSS 5.1 MediumEPSS 0.0026 · 18th percentile

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

PackageEcosystemAffectedFixed in
justhtmlPyPI<1.12.01.12.0
Identifiers
GHSA-qvc2-mg72-jjhx · CVE-2026-8630
Weakness (CWE)
CWE-79
Published
18 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.12.0 are affected by a mutation XSS issue when a custom sanitization policy allows raw-text elements such as style or script. Text inside these elements is serialized without escaping, so an attacker who controls DOM content built or modified programmatically and then passed through sanitize_dom() can include the matching closing tag and inject HTML into the output. The default policy is not affected because it drops the contents of style and script. Upgrade to version 1.12.0 or later.

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.