Skip to main content

svg-sanitizer EUVDEUVD-2026-115865

| CVE-2026-121443 MEDIUM
Uncaught Exception (CWE-248)
2026-11-03 VulnCheck GHSA-8888-g577-32c9
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Reach endpoint accepting SVG upload
  2. Exploit
    Submit truncated SVG ending in '<'
  3. Execution
    Trigger uncaught ValueError in findProblemBeforeParsing()
  4. Impact
    Crash the request (denial of service)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

Requires: (1) the target running svg-sanitizer (enshrined/svg-sanitize) at version 1.1.0 with default settings; (2) the application passing attacker-controlled input to sanitize(); (3) PHP 8, where the bug surfaces as an uncaught ValueError. The trigger is specific: SVG input that ends inside a never-closed tag - smallest case a lone '<' (also '<a', '<svg', '<svg></svg><', or an SVG truncated mid-tag; the DOCTYPE path triggers with UTF-16/UTF-32 input cut inside a DOCTYPE) - which makes $offset point one past the end and breaks the strpos() scan at Sanitizer.php:770 (hasElementWithTooManyAttributes) or :731 (hasInternalDtdSubset). LIMITING FACTORS: on PHP 7 sanitize() returns false (no crash) unless the app converts warnings to exceptions; on PHP 8 the crash only propagates if the app does not catch Error/ValueError, as a catch(\Exception) wrapper will NOT stop it; impact is confined to failing the individual request with no persistent service outage.

Impact

This is a genuine but bounded availability issue, not a critical priority. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 6.9 and correctly captures that a remote, unauthenticated attacker can trigger the flaw over the network with low complexity and no user interaction, but every impact metric except VA is None (VA:L). The real-world effect is narrow: per the GHSA advisory, sanitize() throws an uncaught ValueError on PHP 8 so the single request processing the malformed SVG fails; there is no code execution, data exposure, or integrity loss, and nothing persists across requests. No EPSS score was provided and the CVE is not on CISA KEV, so there is no signal of widespread active exploitation - exploitation status is best described as no confirmed active exploitation, with a proof-of-concept published in the vendor advisory. The vuln.today decision label is this_month, consistent with a low-impact DoS rather than an emergency. Key caveat: impact depends on the host application - an app that wraps sanitize() in catch (\Exception) does NOT catch ValueError (it extends Error, not Exception), so the request fails; on PHP 7 the call returns false unless an error handler promotes the warning to an exception. Whether this is exploitable at all is therefore conditional on PHP version and application error handling, not on svg-sanitizer alone.

Exploit ScenarioDerived

An attacker finds any endpoint of a PHP 8 application that passes untrusted, user-supplied SVG to svg-sanitizer 1.1.0's sanitize() with default settings. They submit a truncated payload ending inside an unclosed tag (as small as a single '<', or a DOCTYPE cut inside a UTF-16 stream), raising an uncaught ValueError from strpos() in findProblemBeforeParsing() and crashing the request. A working proof-of-concept is published in the GHSA advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

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

Alert me

AnalysisAIv1 – Nov 03, 2026

svg-sanitizer 1.1.0 can fail individual PHP 8 requests when an application passes attacker-controlled SVG input that ends inside an unclosed tag, with a lone '<' being the smallest trigger; the resulting uncaught ValueError escapes catch (Exception) handlers and aborts the request. The impact is availability-only and bounded to the affected request, and the vendor fixes it in 1.1.1. A public PoC reference exists; it is not verified as working exploit code, and no confirmed active exploitation is reported in the supplied data.

RemediationAI

Upgrade to svg-sanitizer 1.1.1, the vendor-released patch, as documented in GHSA-f7cw-vfxq-7ph2. If an immediate upgrade is not possible, wrap sanitize() in catch (Throwable) or catch (Error)/catch (ValueError) rather than catch (Exception); the trade-off is that this can also swallow unrelated engine errors. Validate or reject SVG input that ends inside an unclosed tag before calling sanitize(), and on PHP 7 avoid warning-to-exception handlers for this path; these are compensating controls, not complete fixes. Restricting or disabling untrusted SVG uploads until the upgrade removes exposure at the cost of the upload feature. Vendor advisory: https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-f7cw-vfxq-7ph2; VulnCheck advisory: https://www.vulncheck.com/advisories/svg-sanitizer-from-1.1.0-before-1.1.1-denial-of-service-via-unclosed-tag.

Affected VersionsENISA

svg-sanitizer 1.1.0 <1.1.1

Affected Packages

euvd svg_sanitizer fix: 1.1.1

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

The affected component is the enshrined/svg-sanitize PHP library, identified in the supplied CPE as cpe:2.3:a:darylldoyle:svg-sanitizer:*:*:*:*:*:*:*:* and narrowed by the GHSA to release 1.1.0. In 1.1.0, findProblemBeforeParsing() runs hasElementWithTooManyAttributes() and hasInternalDtdSubset() before sanitize()'s try block; when the input ends inside an unclosed tag, the scan sets $offset one past the string end and strpos() is called with an out-of-range offset at Sanitizer.php:770 or :731. On PHP 8 this raises ValueError, which is not an Exception, so catch (Exception) does not contain it; on PHP 7 the same input produces a warning and false, unless the application escalates warnings to exceptions. CWE-248 (Uncaught Exception) matches the root cause; the DOCTYPE path requires UTF-16 or UTF-32 input cut inside a DOCTYPE. The supplied CVSS 4.0 vector is network-reachable with no privileges or user interaction and low availability impact, and the independent CVSS 3.1 assessment is AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, consistent with a request-level denial of service rather than a persistent outage.

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 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Remote unauthenticated low-complexity trigger (AV:N/AC:L/PR:N/UI:N); no confidentiality or integrity impact and only a single request fails, so A:L.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 03, 2026 - 16:17 EUVD

DescriptionCVE.org

svg-sanitizer from 1.1.0 before 1.1.1 contains a denial of service vulnerability that allows remote attackers to crash requests by submitting SVG input ending inside an unclosed tag. Attackers can upload truncated input like a single '<' to trigger an uncaught ValueError from strpos() in hasElementWithTooManyAttributes() or hasInternalDtdSubset() on PHP 8, failing the request.

Threat Intelligence Overview

Prevalence
Medium
popular PHP SVG-sanitization Composer library, widely used but not universal
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

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 N/A
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
Yes
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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