AploSec / Disclosures / CVE-2026-142220

Medium 6.9ReportedNo fix listedCWE-776Packagist

mPDF through 8.3.2 SVG Entity Expansion DoS via Svg.php

CVE-2026-142220 · published 2026-12-02

In plain words: this type of bug lets someone slow down or crash the service with crafted input (denial of service). No fixed release is listed yet.

Summary

CVE-2026-142220 affects mPDF (Packagist) <= 8.3.2: SVG Entity Expansion DoS via Svg.php (CWE-776). No fixed release is listed. CVSS 4.0 base score 6.9 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

References

Severity
Medium 6.9CVSS 4.0, scored by VulnCheck in the CVE record
Package
mPDF
Ecosystem
Packagist
Affected
<= 8.3.2
Fixed
None
Weakness
CWE-776
CNA
VulnCheck
Credit
Zachariah Mithani (AploSec)finder