# CVE-2026-40301: rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 31% of CVEs (2026-11-30)
- Published: 2026-04-10T21:08:30.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-93vf-569f-22cq
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rhukster dom-sanitizer: < 1.0.10
- rhukster/dom-sanitizer (Packagist): before 1.0.10

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`

## References

- <https://github.com/rhukster/dom-sanitizer/security/advisories/GHSA-93vf-569f-22cq> (web)
- <https://github.com/rhukster/dom-sanitizer/commit/49a98046b708a4c92f754f5b0ef1720bb85142e2> (web)
- <https://github.com/rhukster/dom-sanitizer/releases/tag/1.0.10> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40301> (advisory)
- <https://github.com/rhukster/dom-sanitizer> (package)

## Sources

- CVE List: [CVE-2026-40301](https://www.cve.org/CVERecord?id=CVE-2026-40301), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-93vf-569f-22cq](https://github.com/advisories/GHSA-93vf-569f-22cq), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-40301](https://nvd.nist.gov/vuln/detail/CVE-2026-40301), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40301 · Whole record: https://cve.day/CVE-2026-40301.json · Rebuilt by cve.day 2026-11-25T22:59:18.968Z
