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
References
-
github.com
/spipu/html2pdf/commit/100a4d509abf8550765cf0e0da83e83abb422585
web
-
github.com
/spipu/html2pdf/commit/2e6bab9a2afe9cfd4d3c3038da64d8ad74e41d7f
web
-
synacktiv.com
/sites/default/files/2022-01/html2pdf_ssrf_deserialization.pdf
web, exploit, third-party-advisory
-
github.com
/spipu/html2pdf
package, product, third-party-advisory
-
github.com
/spipu/html2pdf/blob/master/CHANGELOG.md
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-45394
advisory
-
github.com
/spipu/html2pdf/releases/tag/v5.2.4
web
Sources
- CVE List CVE-2021-45394
- GitHub Advisory GHSA-6m93-343m-3jrc
- NVD CVE-2021-45394
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.