Improper input validation in rhukster dom-sanitizer
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
DOMSanitizer is a DOM/SVG/MathML Sanitizer for PHP 7.3+. Prior to version 1.0.15, the isDangerousUrl() method is responsible for rejecting dangerous URL values in the href and xlink:href attributes. The weakness is that "javascript:" is rejected as a scheme, while "data:" is rejected only when the literal substring onload appears in the URL value (/^data:.*onload/i). Because data: payloads are routinely Base64-encoded, the dangerous content (<script>, event handlers, etc.) is invisible to that substring test. A URL such as data:text/html;base64,… therefore survives in href / xlink:href, even though the decoded payload is active markup. This is an incomplete input-validation / sanitization defect in the sanitizer itself. This issue has been patched in version 1.0.15.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA dom-sanitizer (rhukster) Fixed in 1.0.15
Timeline
- 2026-10-02 Threatist record created from CVE-2026-100370
References
Other 4
- https://github.com/rhukster/dom-sanitizer/security/advisories/GHSA-wcj2-r6vg-rm97
- https://github.com/rhukster/dom-sanitizer/commit/10f97807e4501d60f63987f2e76a38cdbf312dcb
- https://github.com/rhukster/dom-sanitizer/commit/fb8f758b41134fc5fb2f563666f2330c69e31f94
- https://github.com/rhukster/dom-sanitizer/releases/tag/1.0.15
More rhukster vulnerabilities
- TI-2026-65752 rhukster dom-sanitizer SVG Sanitization DOMSanitizer.php url incomplete blacklist CVSS 4.0MEDIUM 6.9
- TI-2026-65751 rhukster dom-sanitizer URL Validation DOMSanitizer.php isDangerousUrl cross site scripting CVSS 4.0MEDIUM 5.1
- TI-2026-29079 rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives CVSS 3.1MEDIUM 4.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences