Skip to main content
HIGH

CVE-2026-25755

jsPDF has PDF Object Injection via Unsanitized Input in addJS Method

CVSS v3

8.1

HIGH

EPSS Score

0.9 %

exploit probability, as of 2026-10-17

CISA KEV

No

known exploited

Exploitation

none

SSVC status

Get an alert for each new CVE published for jspdf. Watch jspdf in CVE Watch Free account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • jspdfnpmall versions · fixed in 4.2.0

Vendor advisories

  • CVE-2026-25755 Red Hat Product Security8 products fixed

    jsPDF: PDF object injection via unsanitized input in addJS method

  • RHSA-2026:7128 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: RHACS 4.9.5 security and bug fix update

  • RHSA-2026:7110 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: RHACS 4.8.10 security and bug fix update

Full record on NVD

Description

jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.0, user control of the argument of the `addJS` method allows an attacker to inject arbitrary PDF objects into the generated document. By crafting a payload that escapes the JavaScript string delimiter, an attacker can execute malicious actions or alter the document structure, impacting any user who opens the generated PDF. The vulnerability has been fixed in jspdf@4.2.0. As a workaround, escape parentheses in user-provided JavaScript code before passing them to the `addJS` method.

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Published
2026-02-19
Last Modified
2026-02-23

Frequently asked questions

What is CVE-2026-25755?

jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.0, user control of the argument of the `addJS` method allows an attacker to inject arbitrary PDF objects into the generated document. By crafting a payload that escapes the JavaScript string delimiter, an attacker can execute malicious actions or alter the document structure, impacting any user who opens the generated PDF. The vulnerability has been fixed in jspdf@4.2.0. As a workaround, escape parentheses in user-provided JavaScript code before passing them to the `addJS` method.

Is CVE-2026-25755 actively exploited?

Active exploitation of CVE-2026-25755 has not been confirmed. Its EPSS score was 0.9% on 2026-10-17, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-25755?

CVE-2026-25755 has a CVSS v3 base score of 8.1 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N.

Running jspdf? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · 50 free checks/month · Free API key