Description
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.
Recommendation
Update the html2pdf.js package to the latest compatible version. Followings are version details:
- Affected version(s): < 0.14.0
- Patched version(s): 0.14.0
References
Related Issues
- Pepr Has Overly Permissive RBAC ClusterRole in Admin Mode - CVE-2026-23634
- fastify-reply-from affected by bypass of reply forwarding - CVE-2025-66415
- Finance.js vulnerable to DoS via the seekZero() parameter - CVE-2025-56572
- jsPDF Bypass Regular Expression Denial of Service (ReDoS) - CVE-2025-29907
- Tags:
- npm
- html2pdf.js
Anything's wrong? Let us know Last updated on January 21, 2026