Vulnerability

CVE-2026-40301

mediumCVSS 3.1 4.7Published 17 Apr 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /rhukster/dom-sanitizer/commit/49a98046b708a4c92f754f5b0ef1…
  • github.com /rhukster/dom-sanitizer/releases/tag/1.0.10
  • github.com /rhukster/dom-sanitizer/security/advisories/GHSA-93vf-569f-…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning