CVE Catalog

CVE-2026-25755

HighCVSS 8.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.83%

55th percentile - higher than 55% of all known CVEs

Summary

The jsPDF library prior to version 4.2.0 is vulnerable to injection of arbitrary PDF objects via user-controlled argument of the `addJS` method. An attacker can escape JavaScript string delimiters to alter document structure or execute malicious actions.

Risk Assessment

The risk involves users opening crafted PDF files being exposed to unauthorized document modifications or code execution, potentially leading to data integrity breaches or social engineering attacks.

Recommendation

Immediately update jsPDF to version 4.2.0 or later. If updating is not possible, escape parentheses in user-provided JavaScript code before passing it to the `addJS` method.

Other vulnerabilities in jsPDF

See all
Original NVD description (English source)

jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.0, user control of the argument of the `addJS` method allows an attacker to inject arbitrary PDF objects into the generated document. By crafting a payload that escapes the JavaScript string delimiter, an attacker can execute malicious actions or alter the document structure, impacting any user who opens the generated PDF. The vulnerability has been fixed in [email protected]. As a workaround, escape parentheses in user-provided JavaScript code before passing them to the `addJS` method.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS