CVE-2025-29907
jsPDF Bypass Regular Expression Denial of Service (ReDoS)
Reported by github_m · Published March 18, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| opensearch-dashboards-2 | Chainguard | 2.19.1-r3 |
| jspdf | parall | 3.0.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| parallax | jsPDF | < 3.0.1 |
| chainguard | opensearch-dashboards-2 | 0 |
| parallax | jsPDF | 0 |
| wolfi | opensearch-dashboards-2 | 0 |
| npm | jspdf | 0 |
| chainguard | opensearch-dashboards-2-fips | 0 |
Timeline
- Mar 18, 2025 CVE Published
- Mar 18, 2025 CVE Updated
- Mar 19, 2025 EPSS Score (30 in total, the first dated here)
- Mar 25, 2025 Coalition ESS Score (12 in total, the first dated here)
- Dec 18, 2025 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-29907
vulnetix vdb fixes CVE-2025-29907
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-29907/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/parallax/jsPDF/security/advisories/GHSA-w532-jxjh-hjhj x_refsource_CONFIRM
- https://github.com/parallax/jsPDF/commit/b167c43c27c466eb914b927885b06073708338df x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-29907 advisory
- https://github.com/advisories/GHSA-w532-jxjh-hjhj advisory
- https://github.com/parallax/jsPDF url