{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-45394","id":"CVE-2021-45394","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 <link> tag in the converted HTML document.","descriptionLong":"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":"2022-01-18T11:15:45.000Z","updated":"2026-10-20T10:55:07.979479909Z","reserved":"2021-12-20T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"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","rating":"high","source":"NVD"},"metrics":[{"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","rating":"high","source":"NVD"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"spipu/html2pdf","purl":"pkg:composer/spipu/html2pdf","ranges":["<5.2.4"],"fixed":["5.2.4"],"advisory":"GHSA-6m93-343m-3jrc"}],"cwes":["CWE-502","CWE-918","CWE-79"],"aliases":["GHSA-6m93-343m-3jrc"],"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"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01633,"epssPercentile":0.76803,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-45394","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45394","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-45394","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6m93-343m-3jrc","ok":true,"note":"GHSA-6m93-343m-3jrc"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-45394","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}