CVE-2021-45394
HIGH 8.8CVSS 3.1Cross-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.
- Published
- 18 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-502CWE-79CWE-918
- Also known as
- GHSA-6m93-343m-3jrc
- Sources
- NVDJSONOSV GHSA-6m93-343m-3jrcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | html2pdf_project | html2pdfcpe:2.3:a:html2pdf_project:html2pdf:*:*:*:*:*:*:*:* |
< 5.2.4 | 5.2.4 |
| OSV | Packagist | spipu/html2pdf | < 5.2.4 | 5.2.4 |
References
- https://github.com/spipu/html2pdf · Product, Third Party Advisory, PACKAGE
- https://github.com/spipu/html2pdf/blob/master/CHANGELOG.md · Release Notes, Third Party Advisory, WEB
- https://www.synacktiv.com/sites/default/files/2022-01/html2pdf_ssrf_deserialization.pdf · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-45394 · ADVISORY
- https://github.com/spipu/html2pdf/commit/100a4d509abf8550765cf0e0da83e83abb422585 · WEB
- https://github.com/spipu/html2pdf/commit/2e6bab9a2afe9cfd4d3c3038da64d8ad74e41d7f · WEB
- https://github.com/spipu/html2pdf/releases/tag/v5.2.4 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 18 Jan 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 21 Jan 2022)