CVE-2025-29907
HIGH 8.7CVSS 4.0jsPDF Bypass Regular Expression Denial of Service (ReDoS)
jsPDF is a library to generate PDFs in JavaScript. Prior to 3.0.1, user control of the first argument of the addImage method results in CPU utilization and denial of service. If given the possibility to pass unsanitised image urls to the addImage method, a user can provide a harmful data-url that results in high CPU utilization and denial of service. Other affected methods are html and addSvgAsImage. The vulnerability was fixed in jsPDF 3.0.1.
- Published
- 18 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-400CWE-770
- Also known as
- GHSA-w532-jxjh-hjhj
- Sources
- NVDJSONOSV GHSA-w532-jxjh-hjhjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | parall | jspdfcpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:* |
< 3.0.1 | 3.0.1 |
| OSV | npm | jspdf | < 3.0.1 | 3.0.1 |
References
- https://github.com/parallax/jsPDF/commit/b167c43c27c466eb914b927885b06073708338df · Patch, WEB
- https://github.com/parallax/jsPDF/security/advisories/GHSA-w532-jxjh-hjhj · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-29907 · ADVISORY
- https://github.com/parallax/jsPDF · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 18 Mar 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Mar 2025)