CVE-2026-145194: Mozilla Bleach through 6.4.0 URI Scheme Sanitization Bypass via Object Data Attribute
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
Event History
Frequently Asked Questions
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.
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.
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.