Skip to content

← Public intelligence

PyPI package

html-sanitizer

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. UnratedPyPIAmendedPublished

    Arbitrary HTML present after sanitization because of unicode normalization

    CVE-2024-34078 · GHSA-wvhx-q427-fgh3

    Affected
    • PyPI html-sanitizer < 2.4.2
    Fixed in
    2.4.2· Vendor fix available
    Issue
    Impact If using keeptypographicwhitespace=False (which is the default), the sanitizer normalizes unicode to the NFKC form at the end. Some unicode characters normalize to chevrons; this allows specially crafted HTML to escape sanitization. Patches The problem has been fixed in 2.4.2. Workarounds Set keeptypographicwhitespace=True explicitly, or normalize to NFKC yourself earlier.

    Recommended action: Upgrade to 2.4.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →