CVE-2021-45394Html2pdf Project Html2pdf
High 8.8 No auth needed
Follow: this CVE · Html2pdf Project · Html2pdf Project Html2pdf We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Html2pdf.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| html2pdf_project | html2pdf | < 5.2.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product Third Party Advisory
- github.com Release Notes Third Party Advisory
- www.synacktiv.com Exploit Third Party Advisory