Skip to main content
EPSS 0.7%top 48%

CVE-2026-25535: CWE-400: Uncontrolled Resource Consumption in parallax jsPDF

0
High
VulnerabilityCVE-2026-25535cvecve-2026-25535cwe-400cwe-770gcve
Published: 02/19/2026 (02/19/2026, 14:34:05 UTC)
Source: CVE Database V5
Vendor/Project: parallax
Product: jsPDF

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.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

parallax

jsPDF

Affected versions
<4.2.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 13:12:55 UTC

Technical Analysis

jsPDF versions prior to 4.2.0 contain a vulnerability (CWE-400, CWE-770) where the addImage and html methods accept unsanitized user input as their first argument. An attacker can exploit this by supplying a specially crafted GIF file with invalid width and height header values, causing the application to allocate excessive memory. This uncontrolled resource consumption results in denial of service via out-of-memory conditions and application crashes. The vulnerability has been addressed and fixed in version 4.2.0 of jsPDF. Workarounds include sanitizing or validating image data or URLs before use in the affected methods.

Potential Impact

The vulnerability allows an attacker to cause denial of service by forcing the application to allocate excessive memory, leading to out-of-memory errors and crashes. There is no impact on confidentiality or integrity. The severity is rated high with a CVSS score of 8.7. No known exploits in the wild have been reported.

Mitigation Recommendations

A fix is available in jsPDF version 4.2.0. Users should upgrade to this version to fully mitigate the vulnerability. As a workaround, sanitize or validate image data and URLs before passing them to the addImage or html methods, ensuring width and height header values do not exceed safe limits.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-02T19:59:47.374Z
Cvss Version
4.0
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-25535","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7110","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7128","vendor":"Red Hat"}]

Threat ID: 6997264f521539184371324a

Added to database: 02/19/2026, 15:03:43 UTC

Last enriched: 08/17/2026, 13:12:55 UTC

Last updated: 09/11/2026, 19:42:47 UTC

Views: 625

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses