CVE-2026-25755CWE-116CWE-94code-injection

CVE-2026-25755

High · published February 19, 2026

CVSS v3.1
8.1
EPSS
1%
Percentile
59.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00918 · 59.9th percentile
Weaknesses
CWE-116 · Improper Encoding or Escaping of Output; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-02-19T20:16Z
Affected products (1)
ProductVersionsFixed in
parall/jspdf< 4.2.04.2.0
References (9)
EPSS history
Timeline
  • 19 FEB 14:41Z
    jsPDF has PDF Object Injection via Unsanitized Input in addJS Method
    cvelistv5