CVE-2026-24040: jsPDF is a library to generate PDFs in JavaScript
CVE-2026-24040 is a medium-severity flaw (CVSS 4.8) affecting jspdf. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.8 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 79%) |
| CISA exploited list | No |
| Weakness | CWE-362 |
| Published | 2026-02-02 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-24040?
jspdf: upgrade to 4.1.0. Exact commands for each OS are on this page.
Is CVE-2026-24040 being exploited?
CVE-2026-24040 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-24040 affect?
CVE-2026-24040 affects jspdf. Severity is medium (CVSS 4.8). 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.
How urgent is CVE-2026-24040?
Priority 32/100. Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2025-68428 HIGH 7.5 UPGRADE jsPDF is a library to generate PDFs in JavaScript
- CVE-2026-31938 CRITICAL 9.6 UPGRADE jsPDF is a library to generate PDFs in JavaScript
- CVE-2026-31898 HIGH 8.1 UPGRADE jsPDF is a library to generate PDFs in JavaScript
- CVE-2026-24737 HIGH 8.1 UPGRADE jsPDF is a library to generate PDFs in JavaScript
- CVE-2026-24133 MEDIUM 6.5 UPGRADE jsPDF is a library to generate PDFs in JavaScript