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.
Affected software
| Software | Affected versions |
|---|---|
mpdf/mpdfPackagist · osv:Packagist:mpdf/mpdf |
|
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
- CVE-2026-142219mPDF through 8.3.2 SSRF via gopher:// and dict:// URLs in CurlHttpClientMedium 6.3 2 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142220