CVE-2026-40301 json
rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives
published 2026-04-10 6 mo ago modified 2026-10-26 13 d ago also EUVD-2026-23545 , GHSA-93vf-569f-22cq
- cvss
- 4.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 25%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist rhukster/dom-sanitizer 1.0.10
- getgrav dom-sanitizer 1.0.10
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.32% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
| GitHub | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | rhukster/dom-sanitizer | <1.0.10 |
1.0.10 |
Affected products
- rhukster dom-sanitizer
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/rhukster/dom-sanitizer/commit/49a98046b708a4c92f754f5b0ef1720bb85142e2
web
-
github.com
/rhukster/dom-sanitizer/security/advisories/GHSA-93vf-569f-22cq
web
-
github.com
/rhukster/dom-sanitizer/releases/tag/1.0.10
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-40301
advisory
-
github.com
/rhukster/dom-sanitizer
package
Sources
- CVE List CVE-2026-40301
- GitHub Advisory GHSA-93vf-569f-22cq
- NVD CVE-2026-40301
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.