CVE-2026-22787

HIGH CVSS 4.0: 8.7 EPSS 0.39%
Updated Jan 20, 2026
Ekoopmans
Parameter Value
CVSS 8.7 (HIGH)
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Ekoopmans
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
Low
Partial disruption

CVSS Vector v4.0

Vulnerable Products

ekoopmans:html2pdf.js