SecurityContext

CVE-2026-24040: jsPDF - Information Disclosure

  • Cve: CVE-2026-24040
  • Name: jsPDF - Information Disclosure
  • Description: jsPDF is a library to generate PDFs in JavaScript. Prior to 4.1.0, the addJS method in the jspdf Node.js build utilizes a shared module-scoped variable (text) to store JavaScript content. When used in a concurrent environment (e.g., a Node.js web server), this variable is shared across all requests. If multiple requests generate PDFs simultaneously, the JavaScript content intended for one user may be overwritten by a subsequent request before the document is generated. This results in Cross-User Data Leakage, where the PDF generated for User A contains the JavaScript payload (and any embedded sensitive data) intended for User B. Typically, this only affects server-side environments, although the same race conditions might occur if jsPDF runs client-side. The vulnerability has been fixed in [email protected].
  • Impact: Attackers can cause sensitive JavaScript content to leak between users, leading to cross-user data exposure.
  • Remediation: Update to version 4.1.0 or later.
  • Vulnerability impact: information_disclosure
  • Requirements: Concurrent PDF generation requests in a shared environment
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.8
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Epss score: 0.00278
  • Epss percentile: 0.20464
  • Assignee: [email protected]
  • Published at: 2026-02-02T23:16:07Z
  • Age in days: 295
  • Modified at: 2026-06-17T10:22:30Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-24040
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirement type, hackerone

Cwe

IdName
CWE-362Concurrent Execution using Shared Resource with Improper Synchronization

Public exploits

UrlSourceAdded date
https://github.com/parallax/jsPDF/security/advisories/GHSA-cjw8-79x6-5cj4nvd2026-02-02

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/parallax/jsPDF/commit/2863e5c26afef211a545e8c174ab4d5fce3b8c0ePatch
https://github.com/parallax/jsPDF/security/advisories/GHSA-cjw8-79x6-5cj4Exploit, Vendor Advisory
https://github.com/parallax/jsPDF/releases/tag/v4.1.0Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
parall:jspdf< 4.1.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: 1
  • Public exploit first date: 2026-02-02
  • 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