CVE-2026-24040
CVE-2026-24040 — jsPDF has a Shared State Race Condition in addJS Plugin
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].
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.3
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.3 | CVSS 4.0 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-362
References
3 on the record
- github.com/parallax/jsPDF/security/advisories/GHSA-cjw8-79x6-5cj4
x_refsource_CONFIRM
- github.com/parallax/jsPDF/commit/2863e5c26afef211a545e8c174ab4d5fce3b8c0e
x_refsource_MISC
- github.com/parallax/jsPDF/releases/tag/v4.1.0
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2021-21166 Google Chromium Race Condition VulnerabilityCVSS 8.8 · CISA KEV
- CVE-2020-6820 Mozilla Firefox And Thunderbird Use-After-Free VulnerabilityCVSS 8.1 · CISA KEV
- CVE-2020-6819 Mozilla Firefox And Thunderbird Use-After-Free VulnerabilityCVSS 8.1 · CISA KEV
- CVE-2025-43510 Apple Multiple Products Improper Locking VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2023-36884 Microsoft Windows Search Remote Code Execution VulnerabilityCVSS 7.5 · CISA KEV
- CVE-2025-62215 Windows Kernel Elevation of Privilege VulnerabilityCVSS 7.0 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.