Skip to content

CVE-2026-24040 jsPDF has a Shared State Race Condition in addJS Plugin

MediumCVSS 6.3 EPSS 0.28%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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