Skip to main content
HIGH

CVE-2026-25940

CVSS v3

8.1

HIGH

EPSS Score

0.7 %

exploit probability, as of 2026-10-17

CISA KEV

No

known exploited

Exploitation

—

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-25940 Red Hat Product Security8 products fixed

    jsPDF: PDF injection in AcroForm module allows arbitrary JavaScript execution (RadioButton children)

  • 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 properties and methods of the Acroform module allows users to inject arbitrary PDF objects, such as JavaScript actions. If given the possibility to pass unsanitized input to one of the following property, a user can inject arbitrary PDF objects, such as JavaScript actions, which are executed when the victim hovers over the radio option. The vulnerability has been fixed in jsPDF@4.2.0. As a workaround, sanitize user input before passing it to the vulnerable API members.

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-25940?

jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.0, user control of properties and methods of the Acroform module allows users to inject arbitrary PDF objects, such as JavaScript actions. If given the possibility to pass unsanitized input to one of the following property, a user can inject arbitrary PDF objects, such as JavaScript actions, which are executed when the victim hovers over the radio option. The vulnerability has been fixed in jsPDF@4.2.0. As a workaround, sanitize user input before passing it to the vulnerable API members.

Is CVE-2026-25940 actively exploited?

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

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

CVE-2026-25940 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