CriticalGHSA-3vjh-xrhf-v9xhCVE-2021-3902

Improper Restriction of XML External Entity Reference in dompdf/dompdf

Published 15 Nov 2024 · Updated 18 Nov 2024

Affected package

Affected
<2.0.0
Fixed in
2.0.0
Update to the fixed version for your release line, for example:composer require dompdf/dompdf:^2.0.0

Details

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.

Is GHSA-3vjh-xrhf-v9xh in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected dompdf/dompdf, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.