{"id":"GHSA-95fx-jjr5-f39c","revision":"86b44ba0a3cf4dccadb9dd161b5f1ccf","records":[{"revision":"86b44ba0a3cf4dccadb9dd161b5f1ccf","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-95fx-jjr5-f39c","aliases":["CVE-2026-24133"],"title":"jsPDF Vulnerable to Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder","description":"### 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.","state":0,"publishedAt":"2026-02-02T18:29:13+00:00","modifiedAt":"2026-09-10T03:50:34.5693798+00:00","affected":[{"ecosystem":"npm","name":"jspdf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/parallax/jsPDF/security/advisories/GHSA-95fx-jjr5-f39c","https://nvd.nist.gov/vuln/detail/CVE-2026-24133","https://github.com/parallax/jsPDF/commit/ae4b93f76d8fc1baa5614bd5fdb5d174c3b85f0d","https://github.com/parallax/jsPDF","https://github.com/parallax/jsPDF/releases/tag/v4.1.0"],"sourceUrl":"https://github.com/advisories/GHSA-95fx-jjr5-f39c","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-95fx-jjr5-f39c","identifiers":["GHSA-95fx-jjr5-f39c","CVE-2026-24133"]},"retained":false,"historicalAffected":[]}],"coverage":[]}