SCA: security update for jspdf (GHSA-7x6v-j9x4-qf24)

medium Tenable Cloud Security Plugin ID 438897

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- jsPDF is a library to generate PDFs in JavaScript. Prior to version 4.2.1, user control of arguments of
the `createAnnotation` method allows users to inject arbitrary PDF objects, such as JavaScript actions. If
given the possibility to pass unsanitized input to the following method, a user can inject arbitrary PDF
objects, such as JavaScript actions, which might trigger when the PDF is opened or interacted with the
`createAnnotation`: `color` parameter. The vulnerability has been fixed in [email protected]. As a workaround,
sanitize user input before passing it to the vulnerable API members. (CVE-2026-31898)

Solution

Update the jspdf library and its related packages to version 4.2.1 or later.

See Also

https://github.com/advisories/GHSA-7x6v-j9x4-qf24

Plugin Details

Severity: Medium

ID: 438897

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 3/17/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.39

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

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

CVSS Score Source: CVE-2026-31898

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/17/2026

Vulnerability Publication Date: 3/17/2026

Reference Information

CVE: CVE-2026-31898

cwe: CWE-116