Cross-site Scripting in HTML2PDF
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | spipu/html2pdf | < 5.2.4 | 5.2.4 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-45394
- https://github.com/spipu/html2pdf/commit/100a4d509abf8550765cf0e0da83e83abb422585
- https://github.com/spipu/html2pdf/commit/2e6bab9a2afe9cfd4d3c3038da64d8ad74e41d7f
- https://github.com/spipu/html2pdf
- https://github.com/spipu/html2pdf/blob/master/CHANGELOG.md
- https://github.com/spipu/html2pdf/releases/tag/v5.2.4
- https://www.synacktiv.com/sites/default/files/2022-01/html2pdf_ssrf_deserialization.pdf
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-79, CWE-918- Platform
- Composer
- Package
spipu/html2pdf- Disclosed
- 21.01.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-6m93-343m-3jrc - CC BY 4.0
Vulnerability history: spipu/html2pdf
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 01.2022 08.2023
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 1
Disclosures per year
- 2022: 1
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 0
-
Cross-site Scripting in HTML2PDF this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.