VULNERABILITY INTELLIGENCE
CVE-2026-22787
CVSS score6.1 MEDIUM
EPSS probability0.39%
CISA KEVNot currently listed
Published2026-01-14
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A: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 html2pdf.js@0.14.0.
Weakness classification
- security-advisories@github.com: CWE-79
Primary references
- security-advisories@github.com — Patch
- security-advisories@github.com — Issue Tracking
- security-advisories@github.com — Issue Tracking, Patch
- security-advisories@github.com — Release Notes
- security-advisories@github.com — Patch, Vendor Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Exploit, Mitigation, Third Party Advisory