{"id":"CVE-2026-24040","published":"2026-02-02T20:38:24Z","modified":"2026-02-03T15:30:05Z","title":"jsPDF has a Shared State Race Condition in addJS Plugin","vendor":"parallax","product":"jsPDF","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00278,"percentile":0.20684,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/parallax/jsPDF/security/advisories/GHSA-cjw8-79x6-5cj4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/parallax/jsPDF/commit/2863e5c26afef211a545e8c174ab4d5fce3b8c0e","tags":["x_refsource_MISC"]},{"url":"https://github.com/parallax/jsPDF/releases/tag/v4.1.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":4.14},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"parallax","affectedVersions":[{"vendor":"parallax","product":"jsPDF","versions":["< 4.1.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-03T15:29:49.991694Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jspdf","vulnerableRanges":["<4.1.0"],"patched":["4.1.0"],"from":["GHSA-cjw8-79x6-5cj4"],"provenance":"source"}],"summary":{"text":"A race condition in the addJS method of the jspdf Node.js build of the jsPDF library, which stores JavaScript content in a module-scoped variable shared across all requests in concurrent server environments. An attacker with network access and no privileges or user interaction can cause one user's PDF to be generated with JavaScript content and embedded data intended for another user when requests are processed simultaneously, though the same race could theoretically occur if jsPDF runs client-side.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:04Z"},"euvd":{"id":"EUVD-2026-5292","exploited":false,"provenance":"source"}}