Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › PHP

CVE-2026-142220 — mPDF

Medium · CVSS 6.9EPSS 0.6% First seen December 02, 2026

One of 2 mPDF vulnerabilities published together by NVD: our article covers all of them.

PHPWebVulnerabilities

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 6.9 CVSS 4.0 base score from the CNA (vulncheck.com)

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

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 5.3 from the CNA (vulncheck.com): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Weakness

  • CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Affected and fixed versions

ProductAffected versionsFixed in
mPDF≤ 8.3.2—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

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