Live threats

All CVEs / Html2pdf Project

CVE-2021-45394Html2pdf Project Html2pdf

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
1.6%
probability of exploitation in 30 days · percentile 77
Auth required
No
Published
Jan 18, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502, CWE-918
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Html2pdf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist spipu/html2pdf < 5.2.4 5.2.4 composer require "spipu/html2pdf:^5.2.4"

Per OSV / GitHub Advisories (GHSA-6m93-343m-3jrc). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
html2pdf_projecthtml2pdf< 5.2.4

Official sources

References

Links published by the sources. Open them with care.