CVE-2026-5751
Beschrijving NL
justhtml-versies 1.13.0 en eerder bevatten een parser-differential / mutation cross-site scripting (mXSS) -kwetsbaarheid bij gebruik van een aangepast SanitizationPolicy dat buitenlandse naamruimten behoudt (bijv. drop_foreign_namespaces=False met toegestane SVG/MathML-elementen of onbewerkte tekstcontainers zoals ). Speciaal vervaardigde invoer kan desinfecteren in opmaak die veilig lijkt, maar onveilig wordt wanneer deze opnieuw wordt geparseerd door een browser of een andere HTML-parser, waardoor opmaakinjectie mogelijk wordt. De standaard veilige configuratie (sanitize=True) wordt niet beïnvloed. Vast in 1.14.0.
Origineel (Engels) tonen
justhtml versions 1.13.0 and earlier contain a parser-differential / mutation cross-site scripting (mXSS) vulnerability when using a custom SanitizationPolicy that preserves foreign namespaces (e.g., drop_foreign_namespaces=False with allowlisted SVG/MathML elements or raw-text containers such as ). Specially crafted input can sanitize into markup that appears safe but becomes unsafe when re-parsed by a browser or another HTML parser, allowing markup injection. The default safe configuration (sanitize=True) is not affected. Fixed in 1.14.0.