# CVE-2026-142220: mPDF through 8.3.2 SVG Entity Expansion DoS via Svg.php

Source: https://aplosec.si/cve/CVE-2026-142220/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142220

Medium 6.9 · Reported · No fix listed · CWE-776 · Packagist

# 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

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/mpdf-through-8.3.2-svg-entity-expansion-dos-via-svg-php](https://www.vulncheck.com/advisories/mpdf-through-8.3.2-svg-entity-expansion-dos-via-svg-php)

- [Vulnerable codehttps://github.com/mpdf/mpdf/blob/v8.3.2/src/Image/Svg.php#L3116-L3123](https://github.com/mpdf/mpdf/blob/v8.3.2/src/Image/Svg.php#L3116-L3123)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142220](https://www.cve.org/CVERecord?id=CVE-2026-142220)

**Severity:** Medium 6.9 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142220)

**Package:** mPDF

**Ecosystem:** Packagist

**Affected:** <= 8.3.2

**Fixed:** None

**Weakness:** CWE-776

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
