CVE-2026-142220: mPDF through 8.3.2 SVG Entity Expansion DoS via Svg.php
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
Event History
Frequently Asked Questions
Who is exposed to this denial-of-service condition?
Applications using composer/mpdf/mpdf through 8.3.2 are exposed when an attacker can cause the application to process attacker-supplied SVG content, either as an image or as inline SVG during PDF generation.
What must an attacker provide to trigger the issue?
The attacker needs to supply a small SVG containing nested entity declarations that repeatedly reference one another. No authentication or user interaction is required according to the listed CVSS vector.
What is the practical impact of successful exploitation?
Entity expansion can exhaust PHP memory and cause PDF generation to terminate with a fatal error. The stated impact is denial of service rather than disclosure or modification of data.