Skip to content
Fencer Vulns
high 8.8

CVE-2021-45394 json

Cross-site Scripting in HTML2PDF

published 2022-01-18 4 y ago modified 2026-06-17 4 mo ago also GHSA-6m93-343m-3jrc , EUVD-2022-0482

cvss
8.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.6%
EPSS 1.6% chance of exploitation in 30 days, percentile 75%
public exploits
0
none known

Summary

An issue was discovered in Spipu HTML2PDF before 5.2.4. Attackers can trigger deserialization of arbitrary data via the injection of a malicious <link> tag in the converted HTML document.

Patch / fix

  • packagist spipu/html2pdf 5.2.4
  • html2pdf_project html2pdf 5.2.4

Exploit prediction

1.58% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • synacktiv.com https://www.synacktiv.com/sites/default/files/2022-01/html2pdf_ssrf_deserialization.pdf referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P
GitHub 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
packagist spipu/html2pdf
<5.2.4
5.2.4

Classification

Weakness
  • CWE-502 Deserialization of Untrusted Data
  • CWE-918 Server-Side Request Forgery
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.