Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. enshrined/svg-sanitize
  4. ›
  5. CVE-2026-107379

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

October 8, 2026

A crafted SVG file (1009 bytes) crashes the PHP process when sanitized by enshrined/svg-sanitize (any version through 0.22.x). The sanitizer’s cleanAttributesOnWhitelist() method calls DOMElement::removeAttribute() twice on the same attribute name — first removing the explicit attribute, then attempting to remove the DTD #FIXED default — triggering a PHP ext/dom type confusion that kills the PHP-FPM worker.

Affected installations:

  • enshrined/svg-sanitize: 45.2M Packagist downloads, 1.3M/month, 90+ dependents
  • WordPress Safe SVG plugin: 1M+ active installs
  • TYPO3: svg-sanitize integrated into core since v9
  • Drupal: community module wrapping svg-sanitize

References

  • github.com/advisories/GHSA-v383-3rw5-q8rf
  • github.com/darylldoyle/svg-sanitizer/commit/23877db7e76f1e1df5c3e65ab30239219c3d2867
  • github.com/darylldoyle/svg-sanitizer/releases/tag/1.0.0
  • github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-v383-3rw5-q8rf
  • nvd.nist.gov/vuln/detail/CVE-2026-107379

Code Behaviors & Features

Detect and mitigate CVE-2026-107379 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.0

Fixed versions

  • 1.0.0

Solution

Upgrade to version 1.0.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

packagist/enshrined/svg-sanitize/CVE-2026-107379.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:35 +0000.