Node.js jsPDF library < 4.0.0 Local File Inclusion / Path Traversal Vulnerability

critical Nessus Plugin ID 291357

Synopsis

A JavaScript library installed on the remote host is affected by a local file inclusion / path traversal vulnerability.

Description

The version of jsPDF installed on the remote host is prior to 4.0.0. It is, therefore, affected by a local file inclusion / path traversal vulnerability in its Node.js builds.

- The vulnerability exists in the Node.js environment of the library, specifically within the loadFile method and its internal file-loading helper. When user-controlled input is passed as a file path to affected methods, the library reads the specified file from the host system and embeds its raw contents verbatim into the generated PDF.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update jsPDF to version 4.0.0 or later.

See Also

http://www.nessus.org/u?27d98a4d

Plugin Details

Severity: Critical

ID: 291357

File Name: nodejs_jspdf_library_CVE-2025-68428.nasl

Version: 1.1

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 1/19/2026

Updated: 1/19/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.1

CVSS v2

Risk Factor: High

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2025-68428

CVSS v3

Risk Factor: High

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CVSS v4

Risk Factor: Critical

Base Score: 9.2

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Vulnerability Information

CPE: cpe:/a:parallax:jspdf

Required KB Items: Host/nodejs/modules/enumerated

Patch Publication Date: 1/3/2026

Vulnerability Publication Date: 1/3/2026

Reference Information

CVE: CVE-2025-68428