Intel

AIKIDO-2026-904361

rhukster/dom-sanitizer is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-jfrr-ch68-f2w9 Published Aug 10, 2026

54

Medium Risk

This Affects:

PHPrhukster/dom-sanitizer
1.0.0 - 1.0.11
Fixed in 1.0.12
Are you affected? Scan for Free

TL;DR

The sanitizer checks inline style attribute values with a regex that only matches url( when a quote character follows it, while the <style> element path uses a quote-optional check that also decodes CSS escapes before matching. Untrusted SVG or HTML carrying style attributes with unquoted external URLs, hex-escaped schemes, @import, expression(), or data: values keeps those attributes through sanitization. The fix routes inline style attribute values through the same dangerous-CSS check already used for <style> element text.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application renders sanitized SVG or HTML.

Background info

rhukster/dom-sanitizer is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.0 - 1.0.11.

How to fix this

Upgrade the rhukster/dom-sanitizer library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform