CVE-2026-40301
DOMSanitizer is a DOM/SVG/MathML Sanitizer for PHP 7.3+. Prior to …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/rhukster/dom-sanitizer/commit/49a98046b708a4c92f754f5b0ef1720bb85142e2
- github.com/rhukster/dom-sanitizer/releases/tag/1.0.10
- github.com/rhukster/dom-sanitizer/security/advisories/GHSA-93vf-569f-22cq
- github.com/advisories/GHSA-93vf-569f-22cq
- nvd.nist.gov/vuln/detail/CVE-2026-40301
- nvd.nist.gov/vuln/detail/CVE-2026-40301
- cve.org/CVERecord?id=CVE-2026-40301
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.