CVE-2026-25755
Last modified
CVE-2026-25755 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 0.63% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Parall | Jspdf | < 4.2.0 |
References
- https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.mdExploit, Mitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-25755?
How severe is CVE-2026-25755?
How do I fix CVE-2026-25755?
Are you affected by CVE-2026-25755?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
