8.7
/ 10
HIGH
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
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 [email protected].
AI Analysis
Cross-site scripting (XSS) vulnerability in html2pdf.js prior to 0.14.0, allowing malicious scripts to run on the client browser
Basic Information
ID
CVE-2026-22787
Source
GitHub_M
Published
Jan 14, 2026 at 16:52
Affected Product
Vendor
eKoopmans
Product
html2pdf.js
Version
< 0.14.0
Affected Versions
eKoopmans html2pdf.js < 0.14.0
CWE Classification
AI Assessment
AI Score
8.7 / 10
AI Severity
High
Vendor
eKoopmans
Product
html2pdf.js
Version
< 0.14.0