CVE-2026-31938: Vulnerability in Parall Jspdf

Critical. User control of the options argument of the output function allows attackers to inject arbitrary HTML (such as scripts) into the browser context the created PDF is opened in. The affected overloads and options are:

npm, CWE-79

Exploitation
None confirmed
Severity
9.6 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-wfv2-pwc8-crg5
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L
Weakness
CWE-79
Published
17 Mar 2026
Last change
18 Aug 2026
Ecosystem
npm

Affected products

Affected versions and the first fixed release

  • Parall Jspdf Before 4.2.1. Fixed in 4.2.1

Affected packages

Vulnerable version ranges and fixed releases

  • jspdf npm, Affected through 4.2.0. Fixed in 4.2.1

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related