{"id":"CVE-2021-45394","aliases":["EUVD-2022-0482","GHSA-6m93-343m-3jrc"],"status":"published","title":"Cross-site Scripting in HTML2PDF","description":"An issue was discovered in Spipu HTML2PDF before 5.2.4. Attackers can trigger deserialization of arbitrary data via the injection of a malicious \u003clink\u003e tag in the converted HTML document.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01581,"percentile":0.75734,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-502","CWE-79","CWE-918"],"published":"2022-01-18T11:15:45Z","modified":"2026-10-20T10:55:07Z","fixes":[{"ecosystem":"Packagist","package":"spipu/html2pdf","fixed_in":["5.2.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"spipu/html2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.4"}]}]},{"source":"osv","ecosystem":"Packagist","package":"spipu/html2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.4"}]}],"versions":["v4.4.0","v4.5.0","v4.5.1","v4.6.0","v4.6.1","v5.0.0","v5.0.1","v5.1.0","v5.2.0","v5.2.1","v5.2.2","v5.2.3"]}],"products":[{"vendor":"html2pdf_project","product":"html2pdf"}],"references":[{"url":"https://github.com/spipu/html2pdf","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","package"]},{"url":"https://www.synacktiv.com/sites/default/files/2022-01/html2pdf_ssrf_deserialization.pdf","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/spipu/html2pdf/blob/master/CHANGELOG.md","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45394","tags":["advisory"]},{"url":"https://github.com/spipu/html2pdf/commit/100a4d509abf8550765cf0e0da83e83abb422585","tags":["web"]},{"url":"https://github.com/spipu/html2pdf/commit/2e6bab9a2afe9cfd4d3c3038da64d8ad74e41d7f","tags":["web"]},{"url":"https://github.com/spipu/html2pdf/releases/tag/v5.2.4","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6m93-343m-3jrc"}],"sources":{"cve":[{"id":"CVE-2021-45394","description":"An issue was discovered in Spipu HTML2PDF before 5.2.4. Attackers can trigger deserialization of arbitrary data via the injection of a malicious \u003clink\u003e tag in the converted HTML document.","status":"published","published":"2022-01-18T11:15:45Z","modified":"2024-08-04T04:39:20.565Z","updated_at":"2026-11-02T14:33:02.930115Z"}],"euvd":[{"id":"EUVD-2022-0482","description":"An issue was discovered in Spipu HTML2PDF before 5.2.4. Attackers can trigger deserialization of arbitrary data via the injection of a malicious \u003clink\u003e tag in the converted HTML document.","status":"published","published":"2022-01-18T11:15:45Z","modified":"2024-08-04T04:39:20Z","updated_at":"2026-11-03T03:08:27.448176Z"}],"ghsa":[{"id":"GHSA-6m93-343m-3jrc","title":"Cross-site Scripting in HTML2PDF","description":"An issue was discovered in Spipu HTML2PDF before 5.2.4. Attackers can trigger deserialization of arbitrary data via the injection of a malicious \u003clink\u003e tag in the converted HTML document.","status":"published","published":"2022-01-21T23:29:48Z","modified":"2023-02-03T05:04:39Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-79","CWE-918"],"updated_at":"2026-11-02T14:36:41.967989Z"}],"nvd":[{"id":"CVE-2021-45394","description":"An issue was discovered in Spipu HTML2PDF before 5.2.4. Attackers can trigger deserialization of arbitrary data via the injection of a malicious \u003clink\u003e tag in the converted HTML document.","status":"published","published":"2022-01-18T12:15:08.243Z","modified":"2026-06-17T04:13:20.027Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-502","CWE-918"],"updated_at":"2026-11-02T14:07:03.821385Z"}],"osv":[{"id":"CVE-2021-45394","description":"An issue was discovered in Spipu HTML2PDF before 5.2.4. Attackers can trigger deserialization of arbitrary data via the injection of a malicious \u003clink\u003e tag in the converted HTML document.","status":"published","published":"2022-01-18T12:15:08.243Z","modified":"2026-10-20T10:55:07.979479909Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:22.18434Z"},{"id":"GHSA-6m93-343m-3jrc","title":"Cross-site Scripting in HTML2PDF","description":"An issue was discovered in Spipu HTML2PDF before 5.2.4. Attackers can trigger deserialization of arbitrary data via the injection of a malicious \u003clink\u003e tag in the converted HTML document.","status":"published","published":"2022-01-21T23:29:48Z","modified":"2023-11-08T04:07:20.751955Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-79","CWE-918"],"updated_at":"2026-11-02T15:46:39.965326Z"}]}}
