Description
Bleach through 6.4.0 contains a cross-site scripting vulnerability because clean() omits URI protocol sanitization for the object data attribute and legacy codebase, classid, code, and archive attributes. When applications allow the object tag with data, attackers can supply javascript:, data:text/html, or file: URIs that bypass allowed protocols, loading attacker-controlled content for victims.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Mozilla Bleach
Default version status: unaffected
0 to ≤ 6.4.0affected
pkg:pypi/bleachReferences
- https://github.com/mozilla/bleach/blob/v6.4.0/bleach/_vendor/html5lib/filters/sanitizer.py#L525-L540 ↗
- https://github.com/mozilla/bleach/blob/v6.4.0/bleach/sanitizer.py#L556 ↗
- https://github.com/mozilla/bleach/security/advisories/GHSA-gj48-438w-jh9v ↗
- https://github.com/mozilla/bleach/blob/v6.4.0/CHANGES#L7-L9 ↗
- https://www.vulncheck.com/advisories/mozilla-bleach-through-6.4.0-uri-scheme-sanitization-bypass-via-object-data-attribute ↗