{"cve":"CVE-2026-22787","nvd":{"published":"2026-01-14T17:16:09.290","modified":"2026-06-17T10:20:25.633","status":"Analyzed","description":"html2pdf.js converts any webpage or element into a printable PDF entirely client-side. Prior to 0.14.0, html2pdf.js contains a cross-site scripting (XSS) vulnerability when given a text source rather than an element. This text is not sufficiently sanitized before being attached to the DOM, allowing malicious scripts to be run on the client browser and risking the confidentiality, integrity, and availability of the page's data. This vulnerability has been fixed in html2pdf.js@0.14.0.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","score":8.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/eKoopmans/html2pdf.js/commit/988826e336035b39a8608182d7b73c0e3cd78c7b","https://github.com/eKoopmans/html2pdf.js/issues/865","https://github.com/eKoopmans/html2pdf.js/pull/877","https://github.com/eKoopmans/html2pdf.js/releases/tag/v0.14.0","https://github.com/eKoopmans/html2pdf.js/security/advisories/GHSA-w8x4-x68c-m6fc"],"products":["ekoopmans:html2pdf.js"],"source":"nvd","synced_at":"2026-10-19T22:19:41.481987139+00:00"},"epss":{"cve":"CVE-2026-22787","score":0.0039,"percentile":0.33199,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-w8x4-x68c-m6fc","url":"https://osv.dev/vulnerability/GHSA-w8x4-x68c-m6fc","summary":"html2pdf.js contains a cross-site scripting vulnerability","modified":"2026-02-03T03:11:31.431997Z","packages":[{"ecosystem":"npm","name":"html2pdf.js","purl":"pkg:npm/html2pdf.js","ranges":["<0.14.0"],"fixed":["0.14.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}