CVE-2026-24133: Jspdf Denial of Service Vulnerability
HIGHCVE-2026-24133 is a HIGH denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Jspdf libraries in the npm ecosystem. The issue involves jspdf vulnerable to denial of service (dos) via unvalidated bmp dimensions in bmpdecoder. Remediation is available by upgrading affected packages to version 4.1.0.
CVE-2026-24133 at a Glance
How to Fix CVE-2026-24133
To remediate this vulnerability, upgrade all affected Jspdf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install jspdf@4.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls jspdf
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-24133, inspect your project dependencies using npm:
npm ls jspdf
Analyze the terminal output to locate any version of Jspdf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.0), your application is affected.
Note: The npm ls jspdf command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Jspdf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-24133 Affected Jspdf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jspdf
|
npm |
< 4.1.0
|
4.1.0
|
References
Frequently Asked Questions
What is CVE-2026-24133?
Which Jspdf versions are affected?
What version fixes CVE-2026-24133?
Is jspdf affected?
What CWE is associated with CVE-2026-24133?
How can I check npm dependencies for CVE-2026-24133?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-95fx-jjr5-f39c",
"modified" : "2026-02-03T16:12:57Z",
"published" : "2026-02-02T18:29:13Z",
"aliases" : [ "CVE-2026-24133" ],
"summary" : "jsPDF Vulnerable to Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder",
"details" : "### Impact\n\nUser control of the first argument of the `addImage` method results in Denial of Service.\n\nIf given the possibility to pass unsanitized image data or URLs to the `addImage` method, a user can provide a harmful BMP file that results in out of memory errors and denial of service. Harmful BMP files have large width and/or height entries in their headers, wich lead to excessive memory allocation.\n\nOther affected methods are: `html`.\n\nExample attack vector:\n\n```js\nimport { jsPDF } from \"jspdf\" \n\n// malicious BMP image data with large width/height headers\nconst payload = ...\n\nconst doc = new jsPDF();\n\ndoc.addImage(payload, \"BMP\", 0, 0, 100, 100);\n```\n\n### Patches\n\nThe vulnerability has been fixed in jsPDF 4.1.0. Upgrade to jspdf@>=4.1.0.\n\n### Workarounds\n\nSanitize image data or URLs before passing it to the addImage method or one of the other affected methods.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jspdf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.0.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/parallax/jsPDF/security/advisories/GHSA-95fx-jjr5-f39c"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-24133"
}, {
"type" : "WEB",
"url" : "https://github.com/parallax/jsPDF/commit/ae4b93f76d8fc1baa5614bd5fdb5d174c3b85f0d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/parallax/jsPDF"
}, {
"type" : "WEB",
"url" : "https://github.com/parallax/jsPDF/releases/tag/v4.1.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-400", "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-02T18:29:13Z",
"nvd_published_at" : "2026-02-02T23:16:08Z"
}
}