{"cve":"CVE-2026-25755","nvd":{"published":"2026-02-19T15:16:12.303","modified":"2026-08-18T12:17:55.890","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-94","CWE-116"],"references":["https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.md","https://github.com/parallax/jsPDF/commit/56b46d45b052346f5995b005a34af5dcdddd5437","https://github.com/parallax/jsPDF/releases/tag/v4.2.0","https://github.com/parallax/jsPDF/security/advisories/GHSA-9vjf-qc39-jprp","https://access.redhat.com/errata/RHSA-2026:7110"],"products":["parall:jspdf"],"source":"nvd","synced_at":"2026-10-19T22:23:35.260773158+00:00"},"epss":{"cve":"CVE-2026-25755","score":0.00952,"percentile":0.61321,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9vjf-qc39-jprp","url":"https://osv.dev/vulnerability/GHSA-9vjf-qc39-jprp","summary":"jsPDF has a PDF Object Injection via Unsanitized Input in addJS Method","modified":"2026-09-10T03:50:59.366092981Z","packages":[{"ecosystem":"npm","name":"jspdf","purl":"pkg:npm/jspdf","ranges":["<4.2.0"],"fixed":["4.2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}