Vulnerability · Published Oct 8, 2026 · Assigned by GitHub_M

CVE-2026-107379enshrined/svg-sanitize: Denial of Service via DTD Attribute Declaration Crash

Medium 6.5

In plain English

A medium-severity resource allocation without limits in svg-sanitizer from darylldoyle. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.5%top 55.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

savg-sanitizer is a PHP SVG/XML sanitizer. Prior to 1.0.0, svg-sanitizer allows a crafted SVG DTD with a #FIXED attribute default to make cleanAttributesOnWhitelist() perform a double DOMElement::removeAttribute() call on the same attribute name in src/Sanitizer.php. The first removal deletes the explicit attribute, while the DTD default rematerializes the value before the href safety path performs the second removal, which can corrupt libxml state and terminate the PHP worker. An attacker who can submit SVG content to a sanitization endpoint can repeatedly interrupt workers and degrade or exhaust application availability. This issue is fixed in version 1.0.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistenshrined/svg-sanitize1.0.0GHSA-v383-3rw5-q8rf

Affected products (as reported)

VendorProductVersions
darylldoyle svg-sanitizer < 1.0.0

Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References