{"id":"CVE-2026-25755","published":"2026-02-19T14:41:46Z","modified":"2026-09-07T12:05:03Z","title":"jsPDF has PDF Object Injection via Unsanitized Input in addJS Method","vendor":"parallax","product":"jsPDF","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00978,"percentile":0.60946,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/parallax/jsPDF/security/advisories/GHSA-9vjf-qc39-jprp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/parallax/jsPDF/commit/56b46d45b052346f5995b005a34af5dcdddd5437","tags":["x_refsource_MISC"]},{"url":"https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.md","tags":["x_refsource_MISC"]},{"url":"https://github.com/parallax/jsPDF/releases/tag/v4.2.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-25755","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2440993","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25755.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:7110","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:7128","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":22.9,"factors":[{"name":"EPSS percentile","points":12.19},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-02-24","earliestUrl":"https://github.com/absholi7ly/jsPDF-Object-Injection","repos":[{"name":"absholi7ly/jsPDF-Object-Injection","url":"https://github.com/absholi7ly/jsPDF-Object-Injection","stars":1,"created":"2026-02-24"}]},"first":{"date":"2026-02-24","source":"PoC-in-GitHub","url":"https://github.com/absholi7ly/jsPDF-Object-Injection"},"provenance":"source"},"vendorSlug":"parallax","affectedVersions":[{"vendor":"parallax","product":"jsPDF","versions":["< 4.2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-19T17:07:08.992065Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jspdf","vulnerableRanges":["<4.2.0"],"patched":["4.2.0"],"from":["GHSA-9vjf-qc39-jprp"],"provenance":"source"}],"summary":{"text":"jsPDF, a JavaScript library for generating PDFs, contains a PDF object injection flaw in its addJS method caused by unsanitized input, affecting versions before 4.2.0. An unauthenticated remote attacker who can supply the argument passed to addJS can craft a payload that escapes the JavaScript string delimiter and injects arbitrary PDF objects, executing malicious actions or altering the document structure for any user who opens the generated PDF, which requires that user to interact with the file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:14Z"},"euvd":{"id":"EUVD-2026-8109","exploited":false,"provenance":"source"}}