All vulnerabilities

Packagist

CVE-2026-142220

mPDF through 8.3.2 SVG Entity Expansion DoS via Svg.php

Severity
Medium 6.9
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Weakness
XML entity expansion (CWE-776)
Attack
Over the network · No login needed · No user action needed
Attacker can
Slow it down
CVSS vector
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
Sources
CVE Program

Description

mPDF through 8.3.2 contains an SVG entity expansion vulnerability in src/Image/Svg.php that allows attackers to exhaust PHP memory by supplying nested entity declarations. Attackers can embed a small SVG with entities referencing each other repeatedly as an image or inline SVG, causing exponential expansion that terminates PDF generation with a fatal error.

From the CVE Program.

Affected software

SoftwareAffected versions
mpdf/mpdfPackagist · osv:Packagist:mpdf/mpdf
  • Every version up to 8.3.2

About mpdf/mpdf

Monthly downloads (Packagist)
4,614,253Packagist, 2 Dec 2026
Total downloads (Packagist)
100,554,486Packagist, 2 Dec 2026

Vulnerabilities in mpdf/mpdf

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
0
Known exploited
0
Search the list for mpdf/mpdf

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142220