Uncaught Exception Affecting enshrined/svg-sanitize package, versions >=0.11.0, <1.1.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.31% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-ENSHRINEDSVGSANITIZE-21762845
  • published28 Oct 2026
  • disclosed27 Oct 2026
  • creditAlpet Gexha

Introduced: 27 Oct 2026

NewCVE-2026-117541  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade enshrined/svg-sanitize to version 1.1.0 or higher.

Overview

enshrined/svg-sanitize is a SVG sanitizer for PHP

Affected versions of this package are vulnerable to Uncaught Exception via the collectIdentifiedElements method in Resolver.php, where processing an SVG document containing a large number of elements with id attributes causes excessive memory allocation. Before the fix, an XPath query (//*[@id]) instantiated a PHP object for every matching element simultaneously, and the findByElementId method iterated over every collected subject for each <use> reference check, resulting in quadratic time and memory complexity that an attacker can exploit by submitting a large SVG to crash the sanitizer process.

CVSS Base Scores

version 4.0
version 3.1