Intel

AIKIDO-2026-995633

html_sanitize_ex is vulnerable to Inclusion of Functionality from Untrusted Control Sphere

CVE-2026-66843Published Aug 7, 2026
August 7, 2026

23

CVE Score

Low

Inclusion of Functionality from Untrusted Control Sphere

Are you affected? Scan for Free

TL;DR

The HTML5 scrubber allows the object element but never registers its data attribute for URI scheme checking, guarding it only with a lowercase javascript: prefix match. As a result mixed-case javascript:, data: URIs, protocol-relative URLs, and same-origin paths survive sanitizing, letting sanitized content load a document of the submitter's choosing into a trusted page. The fix validates the object data attribute against the URI scheme allowlist.

How do I fix this?

Upgrade the html_sanitize_ex library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the HtmlSanitizeEx.html5/1 scrubber, or a custom scrubber extending :html5, and render the sanitized output to other users.

Versions

0.3.1 - 1.5.2

Fixed in 1.5.3

Background info

html_sanitize_ex is vulnerable to Inclusion of Functionality from Untrusted Control Sphere in versions 0.3.1 - 1.5.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea