Skip to content

CVE-2026-7808 justhtml before 1.16.0 Multiple Security Issues via Sanitization

CriticalCVSS 9.3 EPSS 0.59%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

Description

justhtml before 1.16.0 contains multiple HTML sanitization bypass issues that can allow active/dangerous content (e.g., script or style) to survive sanitization, potentially leading to cross-site scripting. The issues primarily affect advanced usage rather than the default JustHTML(..., sanitize=True) path for ordinary parsed HTML: mutating or reusing sanitization policy objects (including exported defaults) could weaken later sanitization; programmatic DOM input to sanitize()/sanitize_dom() could miss mixed-case tag names (e.g., ScRiPt, StYlE); crafted programmatic doctype names could serialize into active markup; and custom policies preserving SVG or MathML could allow animation elements, presentation attributes with external url(...) references, or DOM trees mislabeled as namespace="html" to bypass foreign-content checks. Fixed in 1.16.0.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
pypi justhtml < 1.16.0 1.16.0 Fixed
pypi justhtml(PyPI) < 1.16.0; <= 1.15.0; = 0.1.0; = 0.2.0 +58 more 1.16.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi justhtml(PyPI) < 1.16.0 1.16.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 38 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.12.0 No fix listed
pypi justhtml(PyPI) = 1.13.0 No fix listed
pypi justhtml(PyPI) = 1.14.0 No fix listed
pypi justhtml(PyPI) = 1.15.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.16.0 1.16.0
pypi justhtml(PyPI) <= 1.15.0 No fix listed

References