Description (CNA)
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 <style>). 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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| EmilStenstrom / justhtml | affected 0 before 1.14.0; unaffected 1.14.0 |
CWE
CWE-79
References
- https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-r758-8hxw-4845
- https://www.vulncheck.com/advisories/justhtml-before-mutation-xss-via-custom-sanitization-policies
ADP enrichment
No English description supplied.
No references supplied.