CVE-2026-40301rhukster dom-sanitizer
Medium 4.7 No auth needed
Follow: this CVE · rhukster · rhukster dom-sanitizer We alert you by email or Slack (account required).
- Priority
- 43
- CVSS 3.1
- 4.7
- EPSS
- —
- Auth required
- No
- Published
- Apr 17, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for dom-sanitizer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | rhukster/dom-sanitizer |
< 1.0.10 |
1.0.10 |
composer require "rhukster/dom-sanitizer:^1.0.10" |
Per OSV / GitHub Advisories (GHSA-93vf-569f-22cq). Check the version in your lockfile before upgrading.
Affected products
- rhukster · dom-sanitizer
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.