Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40301: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in rhukster dom-sanitizer

0
Medium
VulnerabilityCVE-2026-40301cvecve-2026-40301cwe-79
Published: Fri Apr 17 2026 (04/17/2026, 20:51:37 UTC)
Source: CVE Database V5
Vendor/Project: rhukster
Product: 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

AILast updated: 04/17/2026, 21:23:21 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses