CVE-2026-142220 — mPDF
One of 2 mPDF vulnerabilities published together by NVD: our article covers all of them.
PHPWebVulnerabilitiesSummary
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.
Severity breakdown
Medium · 6.9
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- no
- Impact
- low on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| mPDF | ≤ 8.3.2 | — |
References by type
Other references
Affected
- mPDF
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-142220?
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. Weakness type: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') (CWE-776).
How severe is CVE-2026-142220?
CVE-2026-142220 has a CVSS 4.0 base score of 6.9 (medium), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-142220 being exploited?
Not as far as is known: CVE-2026-142220 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.6% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-142220?
mPDF ≤ 8.3.2.
How do I fix CVE-2026-142220?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.
Timeline & sources
References
Related vulnerabilities & news
- CVE-2026-77300 — itflow-org itflow
- Wordfence Logs 443 WordPress Vulnerabilities in One Week, Mostly in Plugins
- Silverstripe Userforms Server-Side Template Injection via Email Subject Field (CVE-2026-88991)
- SilverStripe Advanced Workflow Allows Code Execution via Email Templates
- CVE-2026-142141 — joodb.feenders.de JooDatabase extension for Joomla