Submit #958312: rhukster dom-sanitizer <= 1.0.15 Improper Input Validationinfo

Titlerhukster dom-sanitizer <= 1.0.15 Improper Input Validation
Descriptionrhukster/dom-sanitizer is a widely used PHP HTML and SVG sanitization library designed to secure applications—including popular CMS platforms like Grav—against cross-site scripting (XSS) and malicious payload injections. This advisory details a security bypass vulnerability affecting dom-sanitizer versions <= 1.0.15. The vulnerability stems from an overly restrictive scheme-validation gate in isDangerousUrl(), which exclusively targets href and xlink:href attributes. Consequently, other URL-bearing attributes in the default allow-list—most notably form action—fail to undergo dangerous scheme validation, allowing javascript: and arbitrary data: URIs to survive sanitization unhindered. This enables an attacker to construct a submittable form with a javascript: action, leading to Stored Cross-Site Scripting (XSS) upon user interaction. For complete technical details, including the Root Cause Analysis (RCA), exact affected code paths, and full Steps to Reproduce (PoC), please refer to the official, publicly disclosed GitHub Security Advisory linked below
Source⚠️ https://github.com/rhukster/dom-sanitizer/security/advisories/GHSA-mrpv-6x26-mf6c
User
 0xMo-Error (UID 100917)
Submission09/03/2026 17:22 (28 days ago)
Moderation10/01/2026 11:31 (28 days later)
StatusAccepted
VulDB entry412550 [rhukster dom-sanitizer up to 1.0.15 URL Validation src/DOMSanitizer.php isDangerousUrl cross site scripting]
Points20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!