CVE-2026-25755

jsPDF has PDF Object Injection via Unsanitized Input in addJS Method

HIGH
8.8
CVSS Score
Published: February 19, 2026 at 02:41 PM UTC
Updated: August 18, 2026 at 12:17 PM UTC
2 products affected across 2 vendorsJspdfjsPDF

Using jsPDF by parallax?

Get instant alerts when new vulnerabilities affect jsPDF - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 1.0%
SSVC
No known exploit

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 [email protected]. As a workaround, escape parentheses in user-provided JavaScript code before passing them to the `addJS` method.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.2.0
Affected range stops below 4.2.0, so it looks safe — our inference, not a vendor statement
v < 4.2.0
Affected range stops below 4.2.0, so it looks safe — our inference, not a vendor statement

References (9)

x_refsource_CONFIRMVendor Advisory
Source: cverecord
https://github.com/parallax/jsPDF/security/advisories/GHSA-9vjf-qc39-jprp
x_refsource_MISCExploitMitigationThird Party Advisory
Source: cverecord
https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.md
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/parallax/jsPDF/releases/tag/v4.2.0
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/errata/RHSA-2026:7110
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/errata/RHSA-2026:7128
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/security/cve/CVE-2026-25755
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://bugzilla.redhat.com/show_bug.cgi?id=2440993

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-94CWE-116

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card