npm package report

Is html2pdf.js safe?

1 known vulnerability, worst severity HIGH.

cvss
8.7

how bad it is if exploited, out of 10

epss
0.40%

chance of exploitation in the next 30 days

xyz score
4.0

CyberXYZ composite, out of 10

fig. 01 — GHSA-w8x4-x68c-m6fc, the advisory selected below

// advisories

GHSA-w8x4-x68c-m6fc

HIGHCVE-2026-22787

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.

Affected
< 0.14.0
Fixed in
0.14.0
Weakness
CWE-79
Published
2026-01-14
Source
github

GHSANVDMITREreferencereferencereferencereferencereferencereference


// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


Checked 2026-09-22 at 00:39 UTC. The most recent advisory here was published 2026-01-14. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.
Is html2pdf.js safe? npm package security report | CyberXYZ