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
Could your website be exposed too?
SmartScanner can check your website for html2pdf.js contains a cross-site scripting vulnerability and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Vulnogram contains a stored cross-site scripting vulnerability in comment hypertext handling - CVE-2026-32774
- TinyMCE Cross-Site Scripting (XSS) vulnerability using sanitization bypass through nested SVGs - CVE-2026-47760
- TinyMCE Cross-Site Scripting (XSS) vulnerability using through data-mce- prefixed src, href, style attributes - CVE-2026-47759
- NotChatbot WebChat has a stored cross-site scripting (XSS) vulnerability - CVE-2026-30048


