Skip to content

CVE-2026-8630 justhtml before 1.12.0 Mutation XSS via Raw Text Elements

MediumCVSS 5.1 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known

Description

justhtml before 1.12.0 (versions <= 1.11.0) contains a mutation cross-site scripting (mXSS) vulnerability in the serialization of raw-text elements such as <style> and <script>. When a DOM tree is processed by sanitize_dom() using a custom policy that keeps these elements, text nodes inside them are serialized literally without escaping, allowing attacker-controlled text containing the matching closing tag sequence to break out of the raw-text context and inject arbitrary HTML into the serialized output. The default sanitization policy is not affected because it drops the contents of style and script.

Affected products

ProductAffected versionsFixed in
pypi justhtml(PyPI) < 1.12.0 1.12.0
pypi justhtml(PyPI) = 0.1.0 No fix listed
pypi justhtml(PyPI) = 0.10.0 No fix listed
pypi justhtml(PyPI) = 0.11.0 No fix listed
pypi justhtml(PyPI) = 0.12.0 No fix listed
pypi justhtml(PyPI) = 0.13.0 No fix listed
pypi justhtml(PyPI) = 0.13.1 No fix listed
pypi justhtml(PyPI) = 0.14.0 No fix listed
pypi justhtml(PyPI) = 0.15.0 No fix listed
pypi justhtml(PyPI) = 0.16.0 No fix listed
pypi justhtml(PyPI) = 0.17.0 No fix listed
pypi justhtml(PyPI) = 0.18.0 No fix listed
pypi justhtml(PyPI) = 0.19.0 No fix listed
pypi justhtml(PyPI) = 0.2.0 No fix listed
pypi justhtml(PyPI) = 0.20.0 No fix listed
pypi justhtml(PyPI) = 0.21.0 No fix listed
pypi justhtml(PyPI) = 0.22.0 No fix listed
pypi justhtml(PyPI) = 0.23.0 No fix listed
pypi justhtml(PyPI) = 0.24.0 No fix listed
pypi justhtml(PyPI) = 0.25.0 No fix listed
pypi justhtml(PyPI) = 0.26.0 No fix listed
pypi justhtml(PyPI) = 0.27.0 No fix listed
pypi justhtml(PyPI) = 0.28.0 No fix listed
pypi justhtml(PyPI) = 0.29.0 No fix listed
pypi justhtml(PyPI) = 0.3.0 No fix listed
Show 34 more
ProductAffected versionsFixed in
pypi justhtml(PyPI) = 0.30.0 No fix listed
pypi justhtml(PyPI) = 0.31.0 No fix listed
pypi justhtml(PyPI) = 0.32.0 No fix listed
pypi justhtml(PyPI) = 0.33.0 No fix listed
pypi justhtml(PyPI) = 0.34.0 No fix listed
pypi justhtml(PyPI) = 0.35.0 No fix listed
pypi justhtml(PyPI) = 0.36.0 No fix listed
pypi justhtml(PyPI) = 0.37.0 No fix listed
pypi justhtml(PyPI) = 0.38.0 No fix listed
pypi justhtml(PyPI) = 0.39.0 No fix listed
pypi justhtml(PyPI) = 0.4.0 No fix listed
pypi justhtml(PyPI) = 0.40.0 No fix listed
pypi justhtml(PyPI) = 0.5.0 No fix listed
pypi justhtml(PyPI) = 0.5.1 No fix listed
pypi justhtml(PyPI) = 0.5.2 No fix listed
pypi justhtml(PyPI) = 0.6.0 No fix listed
pypi justhtml(PyPI) = 0.7.0 No fix listed
pypi justhtml(PyPI) = 0.8.0 No fix listed
pypi justhtml(PyPI) = 0.9.0 No fix listed
pypi justhtml(PyPI) = 1.0.0 No fix listed
pypi justhtml(PyPI) = 1.1.0 No fix listed
pypi justhtml(PyPI) = 1.10.0 No fix listed
pypi justhtml(PyPI) = 1.11.0 No fix listed
pypi justhtml(PyPI) = 1.2.0 No fix listed
pypi justhtml(PyPI) = 1.3.0 No fix listed
pypi justhtml(PyPI) = 1.4.0 No fix listed
pypi justhtml(PyPI) = 1.5.0 No fix listed
pypi justhtml(PyPI) = 1.6.0 No fix listed
pypi justhtml(PyPI) = 1.7.0 No fix listed
pypi justhtml(PyPI) = 1.8.0 No fix listed
pypi justhtml(PyPI) = 1.9.0 No fix listed
pypi justhtml(PyPI) = 1.9.1 No fix listed
pypi justhtml < 1.12.0 1.12.0
pypi justhtml(PyPI) <= 1.11.0 No fix listed

References