HighGHSA-6x28-7h8c-chx4CVE-2022-41343

Dompdf allows remote file inclusion because URI validation failure does not halt font registration

Published 26 Sept 2022 · Updated 16 Feb 2024

Affected package

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

Details

registerFont in FontMetrics.php in Dompdf before 2.0.1 allows remote file inclusion because a URI validation failure does not halt font registration, as demonstrated by a @font-face rule.

Is GHSA-6x28-7h8c-chx4 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.