The justhtml Python library before version 1.16.0 contains multiple HTML sanitization bypass vulnerabilities that can allow dangerous content such as scripts or styles to survive sanitization, potentially leading to cross-site scripting (XSS). The issues primarily affect advanced usage scenarios rather than the default sanitization path. Specific bypass vectors include: mutating or reusing sanitization policy objects weakening later sanitization; programmatic DOM input missing mixed-case tag names like ScRiPt or StYlE; crafted doctype names serializing into active markup; and custom policies preserving SVG or MathML allowing animation elements, external URL references in presentation attributes, or DOM trees mislabeled with namespace='html' to bypass foreign-content checks. The vulnerabilities are fixed in justhtml version 1.16.0. Users relying on custom or programmatic sanitization policies are most at risk.