Skip to content

Upgrade jsPDF dependency from 3.0.0 to 3.0.2 to address DoS vulnerability#798

Closed
Minozzzi wants to merge 1 commit intoeKoopmans:mainfrom
Minozzzi:main
Closed

Upgrade jsPDF dependency from 3.0.0 to 3.0.2 to address DoS vulnerability#798
Minozzzi wants to merge 1 commit intoeKoopmans:mainfrom
Minozzzi:main

Conversation

@Minozzzi
Copy link
Copy Markdown

@Minozzzi Minozzzi commented Sep 1, 2025

This pull request updates the jsPDF dependency from 3.0.0 to 3.0.2. The update resolves a high-severity denial‑of‑service vulnerability (CVE‑2025‑57810), where passing unsanitized or malformed PNG data to the addImage (and related methods like html) could trigger excessive CPU usage and hang the process. As of version 3.0.2, invalid image inputs now raise an error instead of causing prolonged loops or crashes.

@eKoopmans
Copy link
Copy Markdown
Owner

Thanks @Minozzzi , this has already been fixed in #782 :

html2pdf.js/package-lock.json

Lines 6559 to 6562 in 1e7f989

"node_modules/jspdf": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/jspdf/-/jspdf-3.0.2.tgz",
"integrity": "sha512-G0fQDJ5fAm6UW78HG6lNXyq09l0PrA1rpNY5i+ly17Zb1fMMFSmS+3lw4cnrAPGyouv2Y0ylujbY2Ieq3DSlKA==",

@eKoopmans eKoopmans closed this Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants