CVE-2026-25535
Description
jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.0, user control of the first argument of the `addImage` method results in denial of service. If 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, which lead to excessive memory allocation. Other affected methods are: `html`. The vulnerability has been fixed in jsPDF 4.2.0. As a workaround, sanitize image data or URLs before passing it to the addImage method or one of the other affected methods.
Description as published by the source, in English.
Key facts
- Published
- 2026-02-19
- Last modified
- 2026-08-18
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.7 %
higher than 50 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Parall | Jspdf | < 4.2.0 | Affected |
Weakness type
-
CWE-400: Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource.
-
CWE-770: Allocation of Resources Without Limits or Throttling
The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1498.001: Direct Network Flood
- T1498.002: Reflection Amplification
- T1499: Endpoint Denial of Service
- T1499.001: OS Exhaustion Flood
- T1499.002: Service Exhaustion Flood
- T1499.003: Application Exhaustion Flood
References
- https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25535.md
- https://github.com/parallax/jsPDF/commit/2e5e156e284d92c7d134bce97e6418756941d5e6
- https://github.com/parallax/jsPDF/releases/tag/v4.2.0
- https://github.com/parallax/jsPDF/security/advisories/GHSA-67pg-wm7f-q7fj
- https://access.redhat.com/errata/RHSA-2026:7110
- https://access.redhat.com/errata/RHSA-2026:7128
- https://access.redhat.com/security/cve/CVE-2026-25535
- https://bugzilla.redhat.com/show_bug.cgi?id=2440992
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25535.json
Related at Berigo
Articles
-
Fake recruiters talked IT staff into installing a VPN client that ran hidden code
Same product
2026-08-12
CERT-UA describes how the threat cluster UAC-0145 approaches IT professionals on job sites and runs a full hiring process, complete with a Telegram c…
-
A fake job offer ended with a rootkit in the Windows kernel
Same product
2026-08-12
Check Point Research attributes a new wave of Operation Dream Job to Lazarus, where fake job offers in the defence and aviation industries ended in e…
-
Europe takes more control of the vulnerability register, and NATO IT agency joins
Same product
2026-08-07
ENISA announced on 6 August 2026 that the NATO Communications and Information Agency and the company AISLE have become CVE Numbering Authorities unde…
-
ErrTraffic: ClickFix framework sold as a service
Same product
2026-06-16
Sekoia describes a JavaScript framework delivering ClickFix lures from compromised websites, steered via blockchain smart contracts.
Services
-
AI Governance
Berigo helps organisations adopt artificial intelligence responsibly and with clear governance: from EU AI Act readiness to management systems aligne…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.