CVE-2026-24040 jsPDF has a Shared State Race Condition in addJS Plugin
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Red Hat
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 jsPDF@4.1.0.
Upgrade path
5 packages: 2 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/advanced-cluster-security/rhacs-main-rhel8:1773235860(Red Hat advanced_cluster_security 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/advanced-cluster-security/rhacs-main-rhel8:1773235880(Red Hat advanced_cluster_security 4.8 el8) | All versions | No fix listed | No fix yet |
| npm jspdf(npm) | < 4.1.0; <= 4.0.0 | 4.1.0 | Fixed |
| parall jspdf | < 4.1.0 | 4.1.0 | Fixed |
| parallax jsPDF | = < 4.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| parallax jsPDF | = < 4.1.0 | No fix listed |
| npm jspdf(npm) | <= 4.0.0 | No fix listed |
| redhat/advanced-cluster-security/rhacs-main-rhel8:1773235880(Red Hat:advanced_cluster_security:4.8::el8) | All versions | No fix listed |
| redhat/advanced-cluster-security/rhacs-main-rhel8:1773235860(Red Hat:advanced_cluster_security:4.9::el8) | All versions | No fix listed |
| parall jspdf | < 4.1.0 | 4.1.0 |
| npm jspdf(npm) | < 4.1.0 | 4.1.0 |
References
- https://github.com/parallax/jsPDF/security/advisories/GHSA-cjw8-79x6-5cj4 exploit vendor-advisory
- https://github.com/parallax/jsPDF/commit/2863e5c26afef211a545e8c174ab4d5fce3b8c0e patch
- https://github.com/parallax/jsPDF/releases/tag/v4.1.0 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:4466 patch vendor-advisory
- RHSA-2026:4467 patch vendor-advisory
- Red Hat Bugzilla 2436133 issue-tracking
- www.cve.org
- github.com product