CVE-2026-40301: rhukster dom-sanitizer · Cross-site Scripting
Affects rhukster dom-sanitizerSource CVE Database V5
Not known to be exploited · CVSS 4.7 Medium : upgrade to 1.0.10 when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 25% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.0.10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade dom-sanitizer and rhukster/dom-sanitizer to 1.0.10.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| rhuksterdom-sanitizer | Affected
| Fixed in
|
GitHubrhukster/dom-sanitizerpkg:github/rhukster/dom-sanitizerOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to dom-sanitizer version 1.0.10 or later, where the sanitize() method properly inspects and filters CSS content inside <style> elements in SVG. Since the vendor advisory indicates the issue is fixed in version 1.0.10, applying this official fix is the recommended remediation. No other mitigations are specified or required.
Description
DOMSanitizer is a DOM/SVG/MathML Sanitizer for PHP 7.3+. Prior to version 1.0.10, DOMSanitizer::sanitize() allows <style> elements in SVG content but never inspects their text content. CSS url() references and @import rules pass through unfiltered, causing the browser to issue HTTP requests to attacker-controlled hosts when the sanitized SVG is rendered. Version 1.0.10 fixes the issue.