{"id":"CVE-2025-57810","published":"2025-08-26T15:37:28Z","modified":"2025-08-26T15:58:25Z","title":"jsPDF Parsing of Corrupt PNGs Leads to Potential Denial of Service (DoS)","vendor":"parallax","product":"jsPDF","tier":"tail","description":{"text":"jsPDF is a library to generate PDFs in JavaScript. Prior to 3.0.2, user control of the first argument of the addImage method results in CPU utilization and denial of service. If given the possibility to pass unsanitized image data or URLs to the addImage method, a user can provide a harmful PNG file that results in high CPU utilization and denial of service. The vulnerability was fixed in jsPDF 3.0.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0096,"percentile":0.60103,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/parallax/jsPDF/security/advisories/GHSA-8mvj-3j78-4qmw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/parallax/jsPDF/pull/3880","tags":["x_refsource_MISC"]},{"url":"https://github.com/parallax/jsPDF/commit/4cf3ab619e565d9b88b4b130bff901b91d8688e9","tags":["x_refsource_MISC"]},{"url":"https://github.com/parallax/jsPDF/releases/tag/v3.0.2","tags":["x_refsource_MISC"]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":12.02},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"parallax","affectedVersions":[{"vendor":"parallax","product":"jsPDF","versions":["< 3.0.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-08-26T15:58:22.222216Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jspdf","vulnerableRanges":["<3.0.2"],"patched":["3.0.2"],"from":["GHSA-8mvj-3j78-4qmw"],"provenance":"source"}],"summary":{"text":"The jsPDF JavaScript PDF generation library, in versions prior to 3.0.2, has an input validation flaw in its addImage method, where unsanitized image data or URLs passed as the first argument cause excessive CPU consumption when parsing a crafted PNG file. An attacker who can supply image data or URLs to addImage, which is possible over the network without authentication or user interaction when the application passes unsanitized input to that method, can send a malicious PNG that drives CPU utilization high enough to cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:54Z"},"euvd":{"id":"EUVD-2025-25806","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-parallax-jspdf-cve-2025-29907","parents":[{"from":"CVE-2025-29907","to":"CVE-2025-57810","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jspdf","fromFixed":"3.0.1","toFixed":"3.0.2","daysApart":161},{"kind":"same-code","provenance":"machine","files":["src/modules/addimage.js"],"commits":["https://github.com/parallax/jsPDF/commit/b167c43c27c466eb914b927885b06073708338df","https://github.com/parallax/jsPDF/commit/4cf3ab619e565d9b88b4b130bff901b91d8688e9"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.74,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2020-7691","published":"2020-07-06","fixed":"2.0.0","kev":false},{"cve":"CVE-2021-23353","published":"2021-03-09","fixed":"2.3.1","kev":false},{"cve":"CVE-2025-29907","published":"2025-03-18","fixed":"3.0.1","kev":false},{"cve":"CVE-2025-57810","published":"2025-08-26","fixed":"3.0.2","kev":false},{"cve":"CVE-2025-68428","published":"2026-01-05","fixed":"4.0.0","kev":false},{"cve":"CVE-2026-24040","published":"2026-02-02","fixed":"4.1.0","kev":false},{"cve":"CVE-2026-24043","published":"2026-02-02","fixed":"4.1.0","kev":false}],"package":"npm:jspdf"}}