SecurityContext

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

IdName
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.mdnvd2026-02-19
https://github.com/absholi7ly/jsPDF-Object-Injectionpoc-in-github2026-02-24

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/parallax/jsPDF/commit/56b46d45b052346f5995b005a34af5dcdddd5437Patch
https://github.com/parallax/jsPDF/security/advisories/GHSA-9vjf-qc39-jprpVendor Advisory
https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25755.mdExploit, Mitigation, Third Party Advisory
https://github.com/parallax/jsPDF/releases/tag/v4.2.0Release Notes
https://access.redhat.com/errata/RHSA-2026:7110
https://access.redhat.com/errata/RHSA-2026:7128
https://access.redhat.com/security/cve/CVE-2026-25755
https://bugzilla.redhat.com/show_bug.cgi?id=2440993
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25755.json

Products

ProductAffectedPlatform boundSourcesUrl
parall:jspdf< 4.2.0nonvd/v1/products/parall/jspdf

Projects

RepositoryLink kindsIndexedUrl
parallax/jsPDFcommit, fix, package, releases, security_advisoryyes/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