Skip to main content
← npm

jspdf

15 known vulnerabilities (2 critical, 8 high, 4 medium), with the versions each affects and the releases that fix them.

Latest release
4.2.1 (Mar 17, 2026): no advisory affects it
Newest unaffected release
4.2.1 (Mar 17, 2026), the latest release
Advisories
15 · 2 critical, 8 high, 4 medium
Weekly downloads
20.2M
Dependents
796
Releases
34 since 1.0.272 (May 19, 2015)
Registry
npm
Releases read
Nov 8, 2026

Version timeline

Show all 15 advisoriesShow fewer advisories
Every release cve.now has on record, lowest version on the left; each bar is a run of versions an advisory affects.

Advisories 15

  • CVE-2026-31938Critical 9.6

    jsPDF has HTML Injection in New Window paths

    Affected: fixed in 4.2.1.

    Fixed in 4.2.1 (released Mar 17, 2026, 1 day before disclosure).

    The latest release, 4.2.1, is not affected.

    30% of jspdf downloads last week were affected versions (6.9M).

  • jsPDF has a PDF Object Injection via FreeText color

    Affected: fixed in 4.2.1.

    Fixed in 4.2.1 (released Mar 17, 2026, 1 day before disclosure).

    The latest release, 4.2.1, is not affected.

    30% of jspdf downloads last week were affected versions (6.9M).

  • jsPDF's PDF Injection in AcroForm module allows Arbitrary JavaScript Execution (RadioButton.createOption and "AS" property)

    Affected: fixed in 4.2.0.

    Fixed in 4.2.0 (released Feb 19, 2026, the day of disclosure).

    The latest release, 4.2.1, is not affected.

    25% of jspdf downloads last week were affected versions (5.9M).

  • jsPDF has PDF Object Injection via Unsanitized Input in addJS Method

    Affected: fixed in 4.2.0.

    Fixed in 4.2.0 (released Feb 19, 2026, the day of disclosure).

    The latest release, 4.2.1, is not affected.

    25% of jspdf downloads last week were affected versions (5.9M).

  • jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions

    Affected: fixed in 4.2.0.

    Fixed in 4.2.0 (released Feb 19, 2026, the day of disclosure).

    The latest release, 4.2.1, is not affected.

    25% of jspdf downloads last week were affected versions (5.9M).

  • CVE-2026-24040Medium 6.3

    jsPDF has a Shared State Race Condition in addJS Plugin

    Affected: fixed in 4.1.0.

    Fixed in 4.1.0 (released Feb 2, 2026, the day of disclosure).

    The latest release, 4.2.1, is not affected.

    24% of jspdf downloads last week were affected versions (5.7M).

  • CVE-2026-24043Medium 6.9

    jsPDF Affected by Stored XMP Metadata Injection (Spoofing & Integrity Violation)

    Affected: fixed in 4.1.0.

    Fixed in 4.1.0 (released Feb 2, 2026, the day of disclosure).

    The latest release, 4.2.1, is not affected.

    24% of jspdf downloads last week were affected versions (5.7M).

  • jsPDF Affected by Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder

    Affected: fixed in 4.1.0.

    Fixed in 4.1.0 (released Feb 2, 2026, the day of disclosure).

    The latest release, 4.2.1, is not affected.

    24% of jspdf downloads last week were affected versions (5.7M).

  • jsPDF has a PDF Injection in AcroFormChoiceField which allows Arbitrary JavaScript Execution

    Affected: fixed in 4.1.0.

    Fixed in 4.1.0 (released Feb 2, 2026, the day of disclosure).

    The latest release, 4.2.1, is not affected.

    24% of jspdf downloads last week were affected versions (5.7M).

  • CVE-2025-68428Critical 9.2

    jsPDF has Local File Inclusion/Path Traversal vulnerability

    Affected: fixed in 4.0.0.

    Fixed in 4.0.0 (released Jan 3, 2026, 2 days before disclosure).

    The latest release, 4.2.1, is not affected.

    22% of jspdf downloads last week were affected versions (5.2M).

  • jsPDF Parsing of Corrupt PNGs Leads to Potential Denial of Service (DoS)

    Affected: fixed in 3.0.2.

    Fixed in 3.0.2 (released Aug 26, 2025, the day of disclosure).

    The latest release, 4.2.1, is not affected.

    13% of jspdf downloads last week were affected versions (3.1M).

  • jsPDF Bypass Regular Expression Denial of Service (ReDoS)

    Affected: fixed in 3.0.1.

    Fixed in 3.0.1 (released Mar 18, 2025, the day of disclosure).

    The latest release, 4.2.1, is not affected.

    12% of jspdf downloads last week were affected versions (2.7M).

  • CVE-2021-23353Medium 5.9

    Regular Expression Denial of Service (ReDoS)

    Affected: fixed in 2.3.1.

    Fixed in 2.3.1 (released Mar 9, 2021, the day of disclosure).

    The latest release, 4.2.1, is not affected.

    1% of jspdf downloads last week were affected versions (222K).

  • All affected versions <2.0.0 of package jspdf are vulnerable to Cross-site Scripting (XSS).

    Affected: fixed in 2.0.0.

    Fixed in 2.0.0 (released Aug 11, 2020, 36 days after disclosure).

    The latest release, 4.2.1, is not affected.

    0.8% of jspdf downloads last week were affected versions (180.6K).

  • CVE-2020-7691Medium 6.3

    Cross-site Scripting (XSS)

    Affected: fixed in 2.0.0.

    Fixed in 2.0.0 (released Aug 11, 2020, 36 days after disclosure).

    The latest release, 4.2.1, is not affected.

    0.8% of jspdf downloads last week were affected versions (180.6K).