CVE-2026-25755: parallax jsPDF · Code Injection
Affects parallax jsPDFSource CVE Database V5
Not known to be exploited · CVSS 8.1 High : upgrade to 4.2.0 soon.
Data as of 26 Oct 2026, 12:55 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 61% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.2.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade parallax jsPDF to 4.2.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| parallaxjsPDF | Affected
| Fixed in
|
AI-suggested
A fix is available in jsPDF version 4.2.0; users should upgrade to this version to remediate the vulnerability. As a workaround, sanitize user-provided JavaScript code by strictly escaping backslashes and parentheses before passing it to the addJS method. Additionally, users should avoid opening PDF documents from untrusted sources. The vendor advisory confirms the availability of an official fix and recommends these mitigations.
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.
References
- github.com/parallax/jsPDF/security/advisories/GHSA-9vjf-qc39-jprp (opens in a new tab)
- github.com/parallax/jsPDF/commit/56b46d45b052346f5995b005a34af5dcdddd5437 (opens in a new tab)
- github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.md (opens in a new tab)
- github.com/parallax/jsPDF/releases/tag/v4.2.0 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-25755 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2440993 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25755.json (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:7110 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:7128 (opens in a new tab)