CriticalGHSA-x752-qjv4-c4hcCVE-2022-28368

Remote code injection in dompdf/dompdf

Published 4 Apr 2022 · Updated 16 Feb 2024

Affected package

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

Details

Dompdf is an HTML to PDF converter. Dompdf before 1.2.1 allows remote code execution via a .php file in the src:url field of an @font-face Cascading Style Sheets (CSS) statement (within an HTML input file).

Is GHSA-x752-qjv4-c4hc 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.