Vulnerability
CVE-2026-24040
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].
101 advisories report this vulnerability, across 3 ecosystems.
Advisories in Wolfi
- CGA-26mh-x5ww-prvw
- CGA-28j4-gccf-vpx3
- CGA-3xvr-2v85-96x7
- CGA-48mh-v3f3-3586
- CGA-54x9-5jvm-8672
- CGA-5ffh-hm8x-ppvq
- CGA-5vr3-qhj7-xvm4
- CGA-64qq-5rq7-vg83
- CGA-77gj-3jf8-ph4v
- CGA-885v-v5cc-2mw3
- CGA-9wjp-gvpq-f55j
- CGA-f29q-9qrx-r9xx
- CGA-fcv5-x266-8gw6
- CGA-fjfj-789v-hg3j
- CGA-g757-mm8q-r582
- CGA-gfpx-v85w-v7pc
- CGA-h989-hj7c-hgj2
- CGA-hvcr-mmq4-w838
- CGA-qpmw-4m8p-44qw
- CGA-v6vp-87qf-vfr7
- CGA-wfm8-g39j-j5m6
- CGA-wj73-rpmp-76jh
- CGA-wpv7-rxrh-hv77
- CGA-xr55-p5fr-237h