GHSA-w8x4-x68c-m6fc · Severity: high · Ecosystem: npm — html2pdf.js contains 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 [email protected].
Conclusion & alert: CVE-2026-22787 is rated Exploit Available (56.1/100): CVSS High severity, with low exploitation likelihood (EPSS 0.06%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-16 | 0.04% | 0.06% | +0.02% |
| 2 | 2026-03-22 | 0.05% | 0.04% | -0.01% |
| 3 | 2026-01-15 | — | 0.05% | — |
Full EPSS history (3 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.7 | 4.0 | HIGH |
|
— | — | [email protected] |
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
GHSA-w8x4-x68c-m6fc · Severity: high · Ecosystem: npm — html2pdf.js contains a cross-site scripting vulnerability
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| ekoopmans | html2pdf.js | < 0.14.0 | cpe:2.3:a:ekoopmans:html2pdf.js:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/eKoopmans/html2pdf.js/commit/988826e336035b39a8608182d7b73c0e3cd78c7b | Patch |
| https://github.com/eKoopmans/html2pdf.js/issues/865 | Issue Tracking |
| https://github.com/eKoopmans/html2pdf.js/pull/877 | Issue Tracking Patch |
| https://github.com/eKoopmans/html2pdf.js/releases/tag/v0.14.0 | Release Notes |
| https://github.com/eKoopmans/html2pdf.js/security/advisories/GHSA-w8x4-x68c-m6fc | Patch Vendor Advisory |
| https://aydinnyunus.github.io/2026/01/17/cve-2026-22787-html2pdf-xss-vulnerability/ | Exploit Mitigation Third Party Advisory |