CVE-2026-25755
highpriority · attend · 45EPSS 0.010 · 61 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 8.1–9.6
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
affected products (7)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-2933Splunk SOAR: Mehrere SchwachstellenDeutsch2026-08-19csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Splunk SOAR ausnutzen, um Sicherheitsvorkehrungen zu umgehen, um Informationen offenzulegen, um Dateien zu manipulieren, um einen SQL-Injection Angriff durchzuführen, um einen Cross-Site Scripting Angriff durchzuführen, und um beliebigen Programmcode auszuführen.
- GHSA-9vjf-qc39-jprpjsPDF has a PDF Object Injection via Unsanitized Input in addJS Method2026-02-19ghsa · osvUS
### Impact 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. ```js import { jsPDF } from "jspdf"; const doc = new jsPDF(); // Payload: // 1. ) closes the JS string. // 2. > closes the current dictionary. // 3. /AA ... injects an "Additional Action" that executes on focus/open. const maliciousPayload = "console.log('test');) >> /AA << /O << /S /JavaScript /JS (app.alert('Hacked!')) >> >>"; doc.addJS(maliciousPayload); doc.save("vulnerable.pdf"); ``` ### Patches The vulnerability has been fixed in jspdf@4.2.0. ### Workarounds Escape parentheses in user-provided JavaScript code before passing them to the `addJS` method. ### References https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.md
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.mdcnnvd
- https://github.com/parallax/jsPDF/commit/56b46d45b052346f5995b005a34af5dcdddd5437cnnvd
- https://github.com/parallax/jsPDF/releasesPatchcnnvd
- https://github.com/parallax/jsPDF/releases/tag/v4.2.0cnnvd
- https://github.com/parallax/jsPDF/security/advisories/GHSA-9vjf-qc39-jprpcnnvd
- https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.mdenisa_euvd
- https://github.com/parallax/jsPDF/commit/56b46d45b052346f5995b005a34af5dcdddd5437enisa_euvd
- https://github.com/parallax/jsPDF/releases/tag/v4.2.0enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan