Home / Advisories / CVE-2021-3902 CVE-2021-3902: Improper Restriction of XML External Entity Reference in dompdf/dompdf critical Affects dompdf/dompdf . Feed 2026.11.23.2, updated 2026-11-23; published 2024-11-15 ; advisory modified 2024-11-18 .
Improper Restriction of XML External Entity Reference in dompdf/dompdf Package dompdf/dompdf Composer Affected versions <2.0.0Fixed in 2.0.0Severity critical CVSS 9.8 Exploitation not on CISA KEV · EPSS 1% (62.2th percentile) Published 2024-11-15 Source osv.dev References Quick answers Is CVE-2021-3902 being actively exploited?
It is not on CISA's Known Exploited Vulnerabilities list today.
Which version fixes CVE-2021-3902?
dompdf/dompdf: 2.0.0.
How do I check whether I am affected?
Run `phpwarden deps composer.lock`. phpwarden checks the exact version you have installed against this advisory.
Am I affected? Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.
# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock
# or, without Composer
pipx install phpwarden && phpwarden deps composer.lockOr keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command
Install docs How findings are ranked Related advisories CVE-2022-28368 critical Remote code injection in dompdf/dompdf same package: dompdf/dompdf CVE-2014-2383 medium DOMPDF Arbitrary File Read same package: dompdf/dompdf CVE-2022-41343 high Dompdf allows remote file inclusion because URI validation failure does not halt font regi same package: dompdf/dompdf CVE-2010-4879 high DOMPDF Remote File Inclusion Vulnerability same package: dompdf/dompdf CVE-2014-5013 high DOMPDF Remote Code Execution same package: dompdf/dompdf CVE-2023-23924 critical Dompdf vulnerable to URI validation failure on SVG parsing same package: dompdf/dompdf