CVE-2026-40301: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in rhukster dom-sanitizer
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.
AI Analysis
Technical Summary
The rhukster dom-sanitizer library for PHP versions before 1.0.10 improperly neutralizes input during web page generation by allowing <style> elements in SVG content without sanitizing their text content. This enables CSS url() and @import directives to bypass filtering, leading to potential cross-site scripting scenarios where browsers issue requests to attacker-controlled domains when rendering sanitized SVGs. The vulnerability is addressed in version 1.0.10 of the library.
Potential Impact
An attacker can craft SVG content containing malicious CSS that triggers the browser to load resources from attacker-controlled hosts. This can lead to information leakage such as user IP addresses or other metadata via these HTTP requests. The CVSS score of 4.7 indicates a medium impact primarily affecting confidentiality. There is no indication of integrity or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade to rhukster dom-sanitizer version 1.0.10 or later, which fixes the issue by properly sanitizing the text content of <style> elements in SVGs. Since no official patch links or vendor advisory were provided, users should verify the version and update accordingly. Patch status is not yet confirmed by a vendor advisory; check the official project repository or vendor channels for the latest remediation guidance.
CVE-2026-40301: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in rhukster dom-sanitizer
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The rhukster dom-sanitizer library for PHP versions before 1.0.10 improperly neutralizes input during web page generation by allowing <style> elements in SVG content without sanitizing their text content. This enables CSS url() and @import directives to bypass filtering, leading to potential cross-site scripting scenarios where browsers issue requests to attacker-controlled domains when rendering sanitized SVGs. The vulnerability is addressed in version 1.0.10 of the library.
Potential Impact
An attacker can craft SVG content containing malicious CSS that triggers the browser to load resources from attacker-controlled hosts. This can lead to information leakage such as user IP addresses or other metadata via these HTTP requests. The CVSS score of 4.7 indicates a medium impact primarily affecting confidentiality. There is no indication of integrity or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade to rhukster dom-sanitizer version 1.0.10 or later, which fixes the issue by properly sanitizing the text content of <style> elements in SVGs. Since no official patch links or vendor advisory were provided, users should verify the version and update accordingly. Patch status is not yet confirmed by a vendor advisory; check the official project repository or vendor channels for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T20:22:44.036Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e2a136bdfbbecc59908362
Added to database: 4/17/2026, 9:08:06 PM
Last enriched: 4/17/2026, 9:23:21 PM
Last updated: 4/19/2026, 12:49:35 PM
Views: 19
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.