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.
References
| Link | Resource |
|---|---|
| https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.md | Exploit Mitigation Third Party Advisory |
| https://github.com/parallax/jsPDF/commit/56b46d45b052346f5995b005a34af5dcdddd5437 | Patch |
| https://github.com/parallax/jsPDF/releases/tag/v4.2.0 | Release Notes |
| https://github.com/parallax/jsPDF/security/advisories/GHSA-9vjf-qc39-jprp | Vendor Advisory |
Configurations
History
23 Feb 2026, 18:52
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:* | |
| First Time |
Parall
Parall jspdf |
|
| References | () https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.md - Exploit, Mitigation, Third Party Advisory | |
| References | () https://github.com/parallax/jsPDF/commit/56b46d45b052346f5995b005a34af5dcdddd5437 - Patch | |
| References | () https://github.com/parallax/jsPDF/releases/tag/v4.2.0 - Release Notes | |
| References | () https://github.com/parallax/jsPDF/security/advisories/GHSA-9vjf-qc39-jprp - Vendor Advisory |
19 Feb 2026, 15:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-02-19 15:16
Updated : 2026-02-23 18:52
NVD link : CVE-2026-25755
Mitre link : CVE-2026-25755
CVE.ORG link : CVE-2026-25755
JSON object : View
Products Affected
parall
- jspdf
