XML External Entity (XXE) Injection Affecting php-dompdf package, versions <2.0.2+dfsg-1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.95% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-PHPDOMPDF-18388471
  • published29 Jul 2026
  • disclosed15 Nov 2024

Introduced: 15 Nov 2024

CVE-2021-3902  (opens in a new tab)
CWE-611  (opens in a new tab)

How to fix?

Upgrade Echo:latest php-dompdf to version 2.0.2+dfsg-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php-dompdf package and not the php-dompdf package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

An improper restriction of external entities (XXE) vulnerability in dompdf/dompdf's SVG parser allows for Server-Side Request Forgery (SSRF) and deserialization attacks. This issue affects all versions prior to 2.0.0. The vulnerability can be exploited even if the isRemoteEnabled option is set to false. It allows attackers to perform SSRF, disclose internal image files, and cause PHAR deserialization attacks.

CVSS Base Scores

version 3.1