Skip to main content

svg-sanitize EUVDEUVD-2026-110804

| CVE-2026-117539 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-10-27 disclosure@vulncheck.com GHSA-crrh-v25v-h623
5.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privileged uploader
  2. Delivery
    Upload crafted SVG with style/@import or image href
  3. Exploit
    Victim views page rendering SVG inline
  4. Execution
    Browser fetches attacker-controlled external resources
  5. Impact
    Exfiltrate page data and disclose visitor IP

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to upload an SVG file to the application (PR:L - a low-privileged authenticated uploader in typical deployments) and, for the CSS-injection and host-page data-exfiltration vectors, the SVG must be rendered INLINE in the DOM - the advisory explicitly states these do not apply when the SVG is loaded via <img src="...svg">. A victim must then view the page that renders the SVG (UI:P). The <image href> tracking-pixel and unquoted url() vectors specifically bypass the removeRemoteReferences(true) option, so they work even when that defense is enabled. Limiting factors: no code execution results (data:text/html is blocked by isHrefSafeValue(), so the <a download> polyglot path needs additional crafting plus the victim opening the saved file); impact is confined to confidentiality/tracking; and the highest-value attribute-exfiltration selectors only work where the SVG is inlined into a sensitive page. Affected versions are svg-sanitize < 1.0.0 (vulnerable through 0.22.0); updating to 1.0.0 is the vendor fix.

Impact

This is a genuine but moderate-priority issue, not a top-tier emergency. The CVSS 4.0 base score is 5.1 (Medium) with vector AV:N/AC:L/AT:N/PR:L/UI:P: network-reachable and low-complexity, but it requires low-privilege access (PR:L - i.e., the ability to upload an SVG) and passive user interaction (UI:P - a victim must view the rendered page). Impact is limited to confidentiality (VC:L) with no integrity or availability effect, consistent with the described outcomes: CSS-based data exfiltration, user tracking, and visitor IP disclosure rather than code execution. It is NOT in CISA KEV (no KEV signal in the input), so there is no confirmed active exploitation; the GHSA advisory does contain detailed proof-of-concept SVG payloads, so a public PoC reference exists, though it is not verified as working end-to-end exploit code in a specific product. No EPSS score was provided, so exploitation probability cannot be quantified from this data. The vuln.today decision label is 'this_month' (not act_now/emergency), aligning with the medium severity and absence of active exploitation. The main driver of real-world relevance is reach, not severity: svg-sanitize is extremely widely deployed (45.2M Packagist downloads, 90+ dependents, 1M+ WordPress Safe SVG installs, plus TYPO3 and Drupal), so even a medium-severity logic flaw has a large aggregate footprint. Note a vector discrepancy to verify: the GHSA advisory proposes CVSS 3.1 4.3 with UI:N, whereas the input CVSS 4.0 vector uses UI:P (interaction required); the CSS-injection vectors realistically need a victim to view an inline-rendered SVG, so UI:P is the more defensible choice.

Exploit ScenarioDerived

An attacker with a normal upload-capable account on a site using svg-sanitize uploads an SVG containing a <style> block with @import/url() or an <image href> pointing at attacker infrastructure. When a victim or admin views a page that renders the SVG inline, the browser fetches the external resources, leaking the visitor's IP, enabling tracking, and - via CSS attribute selectors - exfiltrating host-page data character-by-character. Detailed PoC payloads for all vectors are published in the GHSA advisory, though they are not verified as a packaged working exploit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 28, 2026

CSS injection and remote-reference filtering bypasses in enshrined/svg-sanitize before 1.0.0 let an attacker who can upload SVG files embed external stylesheets, tracking pixels and unquoted url() references that survive sanitization. The library never inspects the text content of <style> elements, its removeRemoteReferences option only matches quoted url('...') patterns in attributes, and bare href attributes on <image> are not checked at all, so a low-privileged uploader can exfiltrate host-page attribute data via CSS selectors or disclose visitor IP addresses and browsing activity. Impact is limited to confidentiality and tracking rather than code execution, and the CSS-selector data-exfiltration path only applies where the sanitized SVG is rendered inline in the DOM, not when loaded through <img src>. Proof-of-concept payloads are documented in the upstream advisory; no confirmed exploitation in the wild is reported, and the vendor fix is version 1.0.0.

RemediationAI

Upgrade enshrined/svg-sanitize to 1.0.0, the vendor-released fixed version; the package metadata lists fixed in 1.0.0 for the vulnerable range <= 0.22.0, and updating is the only complete fix because the bypasses are inherent to the sanitizer's logic (see https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-qhmf-972w-m957). Where the upgrade cannot be applied immediately, the upstream advisory's suggested code changes indicate the shape of effective compensating controls: strip or sanitize the text content of <style> elements before output, broaden the hasRemoteReference() regular expression to accept unquoted url() values and add a check for bare http(s) href/src attributes, and remove the download attribute from the allowed-attribute whitelist. Deployment-side controls help but have clear trade-offs: rendering user-supplied SVGs only via <img src> rather than inlining them removes the CSS-selector data-exfiltration and @import vectors, though it does not stop the <image href> tracking pixel or unquoted url() fetches; a Content-Security-Policy restricting img-src and style-src to trusted origins blocks the outbound requests that carry the exfiltration, at the cost of breaking legitimate remote assets; and restricting SVG upload privileges to trusted users reduces exposure but does not eliminate it, since the issue is reachable by any low-privileged uploader. Note that removeRemoteReferences(true) is explicitly bypassable and should not be relied upon as a mitigation on its own.

Affected VersionsENISA

svg-sanitizer 0 <1.0.0

Affected Packages

euvd svg_sanitizer fix: 1.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

enshrined/svg-sanitize is a widely used PHP SVG filtering library (roughly 45 million Packagist downloads and more than 90 dependents, including the WordPress Safe SVG plugin with over a million active installs and downstream use in TYPO3 and Drupal ecosystems). It walks the DOM and enforces whitelists of allowed tags, attributes and attribute values, but the checks are syntactic rather than semantic, and the advisory groups the gaps under CWE-79 (improper neutralization of input during web page generation, i.e. cross-site scripting class). Three distinct weaknesses are described: <style> is on the allowed-tag list yet the element's text content is never sanitized, so @import and url() rules pass through untouched; the hasRemoteReference() helper uses the regular expression ~^url\(\s*[\'"]\s*(.*)\s*[\'"]\s*\)$~xi, which requires the URL to be wrapped in quotes, so unquoted url(https://...) values in attributes such as fill evade the removeRemoteReferences(true) option entirely; and that same helper is only consulted for values matching the url() pattern, so a bare href on an <image> element pointing at a remote URL is preserved even with the option enabled. A fourth vector concerns the allowed download attribute on <a>, which combined with a data: URI can prompt a file download under an attacker-chosen name; the advisory notes that data:text/html is rejected by isHrefSafeValue(), so this path needs a polyglot or a data:image/svg+xml payload plus the victim opening the saved file, and it does not yield code execution on the host origin by itself. All of these are logic and design flaws in the sanitizer, independent of any PHP DOM extension bug, and they reproduce on all PHP versions.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 3.5 LOW

Attacker must authenticate to upload an SVG (PR:L) and a victim must view the inline-rendered page (UI:R); only limited confidentiality/tracking impact, no integrity or availability effect.

3.1 AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 27, 2026 - 12:01 EUVD
CVE Published
Oct 27, 2026 - 11:17 cve.org
MEDIUM 5.1

DescriptionCVE.org

darylldoyle svg-sanitizer before 1.0.0 contains CSS injection and remote reference bypass vulnerabilities that allow attackers to embed external resources by uploading crafted SVG files. Attackers can use unsanitized style content, unquoted url() values, or image href attributes to exfiltrate page data, track users, or disclose visitor IP addresses.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
High
45.2M Packagist downloads, 90+ dependents, 1M+ WordPress Safe SVG installs, TYPO3/Drupal use
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy