CVE-2026-40301
MEDIUM 4.7CVSS 3.1rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives
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.
- Published
- 17 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-93vf-569f-22cq
- Sources
- NVDJSONOSV GHSA-93vf-569f-22cqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | rhukster/dom-sanitizer | < 1.0.10 | 1.0.10 |
References
- https://github.com/rhukster/dom-sanitizer/commit/49a98046b708a4c92f754f5b0ef1720bb85142e2 · WEB
- https://github.com/rhukster/dom-sanitizer/releases/tag/1.0.10 · WEB
- https://github.com/rhukster/dom-sanitizer/security/advisories/GHSA-93vf-569f-22cq · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40301 · ADVISORY
- https://github.com/rhukster/dom-sanitizer · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 17 Apr 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 10 Apr 2026)