Skip to main content
VulnerabilityPublished Updated

CVE-2026-40301: rhukster dom-sanitizer · Cross-site Scripting

Affects rhukster dom-sanitizerSource CVE Database V5

0
Compare

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

CVSS 3.1 base score
4.7Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
rhuksterdom-sanitizerAffected
  • <1.0.10
Fixed in
  • 1.0.10
GitHubrhukster/dom-sanitizerpkg:github/rhukster/dom-sanitizerOther threatsAffected
  • <1.0.10
Fixed in
  • 1.0.10

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.

References

Community reviews

Loading reviews…