CVE-2026-25755: jsPDF - Stored XSS
- Cve: CVE-2026-25755
- Name: jsPDF - Stored XSS
- 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 [email protected]. As a workaround, escape parentheses in user-provided JavaScript code before passing them to the `addJS` method.
- Impact: Attackers can execute malicious JavaScript in PDFs, potentially altering document structure or performing harmful actions on users opening the PDF.
- Remediation: Update to version 4.2.0 or later; escape parentheses in user-provided JavaScript before using addJS.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00938
- Epss percentile: 0.61619
- Assignee: [email protected]
- Published at: 2026-02-19T15:16:12Z
- Age in days: 278
- Modified at: 2026-08-18T12:17:55Z
- Patch available: yes
- Public exploits total: 2
- References total: 9
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-25755
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.md | nvd | 2026-02-19 |
| https://github.com/absholi7ly/jsPDF-Object-Injection | poc-in-github | 2026-02-24 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| parall:jspdf | < 4.2.0 | no | nvd | /v1/products/parall/jspdf |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| parallax/jsPDF | commit, fix, package, releases, security_advisory | yes | /v1/repositories/parallax/jsPDF |
Index
- Repositories: 32
- Repositories high signal: 19
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2026-02-19
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts