{"id":"GHSA-67pg-wm7f-q7fj","revision":"52043857f06843fd833e1a33f1de95da","records":[{"revision":"52043857f06843fd833e1a33f1de95da","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-67pg-wm7f-q7fj","aliases":["CVE-2026-25535"],"title":"jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions","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 GIF file that results in out of memory errors and denial of service. Harmful GIF 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 GIF image data with large width/height headers\nconst payload = ...\n\nconst doc = new jsPDF();\n\ndoc.addImage(payload, \"GIF\", 0, 0, 100, 100);\n```\n\n### Patches\n\nThe vulnerability has been fixed in jsPDF 4.1.1. Upgrade to jspdf@>=4.2.0.\n\n### Workarounds\n\nSanitize image data or URLs before passing it to the addImage method or one of the other affected methods.\n### References\nhttps://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25535.md","state":0,"publishedAt":"2026-02-19T15:25:48+00:00","modifiedAt":"2026-09-10T03:49:48.4228311+00:00","affected":[{"ecosystem":"npm","name":"jspdf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.2.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-67pg-wm7f-q7fj","https://nvd.nist.gov/vuln/detail/CVE-2026-25535","https://github.com/parallax/jsPDF/commit/2e5e156e284d92c7d134bce97e6418756941d5e6","https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25535.md","https://github.com/parallax/jsPDF","https://github.com/parallax/jsPDF/releases/tag/v4.2.0"],"sourceUrl":"https://github.com/advisories/GHSA-67pg-wm7f-q7fj","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-67pg-wm7f-q7fj","identifiers":["GHSA-67pg-wm7f-q7fj","CVE-2026-25535"]},"retained":false,"historicalAffected":[]}],"coverage":[]}