eKoopmans html2pdf.js
html2pdf.js has a cross-site scripting vulnerability
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.7high · scored by CNA · CWE-79
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
eKoopmans html2pdf.js
- < 0.14.0
Fixed in 0.14.0
Mitigation
Upgrade html2pdf.js to 0.14.0 or later.
References
- Vendor advisory github.com/eKoopmans/html2pdf.js/security/advi…
- Patch github.com/eKoopmans/html2pdf.js/pull/877
- Patch github.com/eKoopmans/html2pdf.js/commit/988826…
1 more
- Release notes github.com/eKoopmans/html2pdf.js/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.