{"id":"CVE-2021-45394","aliases":["CVE-2021-45394","GHSA-6m93-343m-3jrc"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting in HTML2PDF","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se ha detectado un problema en Spipu HTML2PDF versiones anteriores a 5.2.4. Los atacantes pueden desencadenar una deserialización de datos arbitrarios por medio de la inyección de una etiqueta (link) maliciosa en el documento HTML convertido","source":"nvd"}],"published":"2022-01-18T11:15:45.000Z","modified":"2026-06-17T04:13:20.027Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-502","CWE-918"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.2.4"}],"ecosystem":"Packagist","package":"spipu/html2pdf","purl":"pkg:composer/spipu/html2pdf","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.2.4"}],"vendor":"html2pdf_project","product":"html2pdf","cpe":"cpe:2.3:a:html2pdf_project:html2pdf:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/spipu/html2pdf","tags":["package","product","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.synacktiv.com/sites/default/files/2022-01/html2pdf_ssrf_deserialization.pdf","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spipu/html2pdf/blob/master/CHANGELOG.md","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45394","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spipu/html2pdf/commit/100a4d509abf8550765cf0e0da83e83abb422585","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spipu/html2pdf/commit/2e6bab9a2afe9cfd4d3c3038da64d8ad74e41d7f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spipu/html2pdf/releases/tag/v5.2.4","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-45394","url":"https://www.cve.org/CVERecord?id=CVE-2021-45394","licence":"CVE Terms of Use","modified":"2024-08-04T04:39:20.565Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6m93-343m-3jrc","url":"https://github.com/advisories/GHSA-6m93-343m-3jrc","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:20.751Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-45394","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45394","licence":"Public domain","modified":"2026-06-17T04:13:20.027Z"}],"updatedAt":"2026-11-25T22:58:06.567Z","epss":{"score":0.01633,"percentile":0.7672,"date":"2026-11-30T12:00:22.000Z"}}