npmWorst: Critical15 advisories

jspdf: known vulnerabilities

jspdf has 15 reviewed security advisories in the GitHub Advisory Database — 2 critical, 9 high, 4 moderate. The most recent was published 2026-03-18. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the jspdf versions running across your servers, containers and images, and ranks what to patch first.

How to fix jspdf

Upgrade jspdf to a release at or above the fixed version shown for each advisory below. For npm:

npm install jspdf@4.2.1 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (15)

jsPDF has a PDF Object Injection via FreeText color High 8.1 CWE-116 — Affected: before 4.2.1. Fixed in 4.2.1. Published 2026-03-18. GHSA-7x6v-j9x4-qf24 · CVE-2026-31898
jsPDF has HTML Injection in New Window paths Critical 9.6 CWE-79 — Affected: before 4.2.1. Fixed in 4.2.1. Published 2026-03-18. GHSA-wfv2-pwc8-crg5 · CVE-2026-31938
jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions High CWE-770 — Affected: before 4.2.0. Fixed in 4.2.0. Published 2026-02-19. GHSA-67pg-wm7f-q7fj · CVE-2026-25535
jsPDF has a PDF Object Injection via Unsanitized Input in addJS Method High 8.1 CWE-116 CWE-94 — Affected: before 4.2.0. Fixed in 4.2.0. Published 2026-02-19. GHSA-9vjf-qc39-jprp · CVE-2026-25755
jsPDF has a PDF Injection in AcroForm module allows Arbitrary JavaScript Execution (RadioButton.createOption and "AS" property) High 8.1 CWE-116 — Affected: before 4.2.0. Fixed in 4.2.0. Published 2026-02-19. GHSA-p5xg-68wr-hm3m · CVE-2026-25940
jsPDF Vulnerable to Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder High CWE-20 CWE-400 CWE-770 — Affected: before 4.1.0. Fixed in 4.1.0. Published 2026-02-02. GHSA-95fx-jjr5-f39c · CVE-2026-24133
jsPDF has Shared State Race Condition in addJS Plugin Moderate CWE-200 CWE-362 — Affected: before 4.1.0. Fixed in 4.1.0. Published 2026-02-02. GHSA-cjw8-79x6-5cj4 · CVE-2026-24040
jsPDF has PDF Injection in AcroFormChoiceField that allows Arbitrary JavaScript Execution High 8.1 CWE-116 — Affected: before 4.1.0. Fixed in 4.1.0. Published 2026-02-02. GHSA-pqxr-3g65-p328 · CVE-2026-24737
jsPDF Vulnerable to Stored XMP Metadata Injection (Spoofing & Integrity Violation) Moderate CWE-20 CWE-74 — Affected: before 4.1.0. Fixed in 4.1.0. Published 2026-02-02. GHSA-vm32-vv63-w422 · CVE-2026-24043
jsPDF has Local File Inclusion/Path Traversal vulnerability Critical CWE-22 CWE-35 CWE-73 — Affected: before 4.0.0. Fixed in 4.0.0. Published 2026-01-05. GHSA-f8cm-6447-x5h2 · CVE-2025-68428
jsPDF Bypass Regular Expression Denial of Service (ReDoS) High CWE-400 CWE-770 — Affected: before 3.0.1. Fixed in 3.0.1. Published 2025-03-18. GHSA-w532-jxjh-hjhj · CVE-2025-29907
jspdf vulnerable to Regular Expression Denial of Service (ReDoS) High 7.5 CWE-400 — Affected: before 2.3.1. Fixed in 2.3.1. Published 2021-03-09. GHSA-57f3-gghm-9mhc · CVE-2021-23353

Find jspdf across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.