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
- github.com/parallax/jsPDF/security/advisories/GHSA-wfv2-pwc8-crg5
- access.redhat.com/errata/RHSA-2026:7110
- access.redhat.com/errata/RHSA-2026:7128
- access.redhat.com/security/cve/CVE-2026-31938
Patches and fixes
Updates, commits and release notes
- github.com/parallax/jsPDF/commit/87a40bbd07e6b30575196370670b41f264aa78d7
- github.com/parallax/jsPDF/releases/tag/v4.2.1
Related
- Jspdf vulnerabilities Recent advisories, watch this product