# CVE-2026-25755: jsPDF has PDF Object Injection via Unsanitized Input in addJS Method

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-19T14:41:46.941Z
- Modified: 2026-09-10T03:50:59.366Z
- Also known as: GHSA-9vjf-qc39-jprp
- Weaknesses: CWE-94, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- parallax jsPDF: < 4.2.0
- advanced-cluster-security/rhacs-main-rhel8: no versions given (not affected: from 1775594119 before *; from 1775594284 before *)
- jspdf (npm): before 4.2.0
- parall jspdf: before 4.2.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- redhat-SADP: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.md> (exploit, mitigation, third-party-advisory, web)
- <https://github.com/parallax/jsPDF/security/advisories/GHSA-9vjf-qc39-jprp> (vendor-advisory, web)
- <https://github.com/parallax/jsPDF/commit/56b46d45b052346f5995b005a34af5dcdddd5437> (patch, web)
- <https://github.com/parallax/jsPDF/releases/tag/v4.2.0> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-25755> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2440993> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25755.json>
- <https://access.redhat.com/errata/RHSA-2026:7110> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:7128> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25755> (advisory)
- <https://github.com/parallax/jsPDF> (package)

## Sources

- CVE List: [CVE-2026-25755](https://www.cve.org/CVERecord?id=CVE-2026-25755), CVE Terms of Use, modified 2026-09-07
- GitHub Advisory Database: [GHSA-9vjf-qc39-jprp](https://github.com/advisories/GHSA-9vjf-qc39-jprp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-25755](https://nvd.nist.gov/vuln/detail/CVE-2026-25755), Public domain, modified 2026-08-18

---

Page: https://cve.day/CVE-2026-25755 · Whole record: https://cve.day/CVE-2026-25755.json · Rebuilt by cve.day 2026-11-25T22:59:14.197Z
