Skip to main content

CVE-2026-100370: CWE-20: Improper Input Validation in rhukster dom-sanitizer

0
Medium
VulnerabilityCVE-2026-100370cvecve-2026-100370cwe-20
Published: 09/28/2026 (09/28/2026, 20:07:09 UTC)
Source: CVE Database V5
Vendor/Project: rhukster
Product: dom-sanitizer

Description

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.

CVSS v3.1

Score 4.7medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

Affected software

rhukster

dom-sanitizer

Affected versions
<1.0.15
GitHub Actionsmore threats →ai
rhukster/dom-sanitizer
pkg:github/rhukster/dom-sanitizer
Affected versions
<1.0.15

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/28/2026, 20:48:21 UTC

Technical Analysis

The vulnerability in rhukster dom-sanitizer versions before 1.0.15 lies in the isDangerousUrl() method, which attempts to block dangerous URL schemes in href and xlink:href attributes. While it correctly rejects the javascript: scheme, it only rejects data: URLs if the literal substring 'onload' appears. Because data: payloads are often Base64-encoded, dangerous content such as <script> tags or event handlers can evade detection and remain in sanitized output. This represents an incomplete input validation and sanitization flaw. The issue was addressed and patched in version 1.0.15.

Potential Impact

This vulnerability allows potentially unsafe data: URLs with encoded active content to bypass the sanitizer's checks, which could lead to injection of active markup in sanitized DOM/SVG/MathML content. The CVSS score of 4.7 (medium severity) reflects limited impact with user interaction required and no direct integrity or availability impact. There are no known exploits in the wild.

Mitigation Recommendations

Upgrade to rhukster dom-sanitizer version 1.0.15 or later, where this input validation flaw in isDangerousUrl() has been fixed. No other mitigation is required as the patch fully addresses the issue.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-09-25T19:19:54.699Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6abacf14f7a7c541062b9a4b

Added to database: 09/28/2026, 20:33:24 UTC

Last enriched: 09/28/2026, 20:48:21 UTC

Last updated: 09/29/2026, 03:33:28 UTC

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses