01 Record
CVE-2026-22787
html2pdf.js has a cross-site scripting vulnerability
HighPUBLISHEDCNA: GitHub_M
CNA base score8.7 CVSS v4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
02 Description
html2pdf.js has a cross-site scripting vulnerability
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 0.39% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 32.9% of scored records. A rank, not a probability.
- NVD base score
- 8.7 (CVSS v4.0), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- NVD analysis status
- Analyzed. NVD last modified this record on 2026-06-17.
- Red Hat severity
- No Red Hat rating. Red Hat rates the CVEs that affect its products.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2026-01-14 16:52Z9 MO AGO
- Last updated
- 2026-01-20 18:37Z9 MO AGO
- Reserved
- 2026-01-09
- Assigning CNA
- GitHub_M
- Record state
- PUBLISHED
- Severity
- High (CVSS 8.7)
- CNA CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
- Weaknesses
- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')Base
- Data version
- 5.2
- Document digest
- 76c3cc9d516e8161f2993398b00d8aebd4928047410223b15d9ad80bb222245e
05 Affected products
VendorProductVersionsPlatforms
06 References
- github.comhttps://github.com/eKoopmans/html2pdf.js/security/advisories/GHSA-w8x4-x68c-m6fc
- github.comhttps://github.com/eKoopmans/html2pdf.js/issues/865
- github.comhttps://github.com/eKoopmans/html2pdf.js/pull/877
- github.comhttps://github.com/eKoopmans/html2pdf.js/commit/988826e336035b39a8608182d7b73c0e3cd78c7b
- github.comhttps://github.com/eKoopmans/html2pdf.js/releases/tag/v0.14.0
- aydinnyunus.github.iohttps://aydinnyunus.github.io/2026/01/17/cve-2026-22787-html2pdf-xss-vulnerability/