CVE-2026-145194: Mozilla Bleach through 6.4.0 URI Scheme Sanitization Bypass via Object Data Attribute

Published Dec 4, 2026
·
Updated

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.

Other sources

Mozilla Bleach through 6.4.0 contains a sanitization bypass vulnerability in clean() that fails to apply URI protocol checks to the object element's data attribute and legacy codebase, classid, code and archive attributes. Attackers can inject javascript:, data:text/html or file: URIs into allowed object attributes so victims viewing sanitized HTML load attacker-controlled content.

— MITRE

Affected Software

1 affected component
pypi/bleach<=6.4.0

Event History

Dec 4, 2026
CVE Published
via MITRE·05:01 PM
Data Sourced
via MITRE·05:01 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:19 PM
DescriptionSeverityWeakness
Event
via NVD·05:19 PM

Frequently Asked Questions

1

Who is exposed to this issue?

Applications that use Bleach clean() on attacker-controlled HTML are exposed if their allowlist permits object elements with the affected data, codebase, classid, code, or archive attributes. Exploitation also requires a victim to view the sanitized HTML.

2

What does an attacker need to include in sanitized content?

The attacker needs an allowed object attribute that accepts a URI value. The affected URI values include javascript:, data:text/html, and file: URIs, which can cause attacker-controlled content to be loaded when the sanitized HTML is viewed.

3

How can I assess whether my configuration is affected?

Review the element and attribute allowlists passed to clean(). A configuration is affected when it allows object together with any of data, codebase, classid, code, or archive for untrusted HTML.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203