Read the docs
TI-2026-24484 Aliases CVE-2026-31938GHSA-wfv2-pwc8-crg5

jsPDF has HTML Injection in New Window paths

Priority MEDIUM 43CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · High · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.

Summary

jsPDF is a library to generate PDFs in JavaScript. Prior to version 4.2.1, 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 vulnerability can be exploited in the following scenario: the attacker provides values for the output options, for example via a web interface. These values are then passed unsanitized (automatically or semi-automatically) to the attack victim. The victim creates and opens a PDF with the attack vector using one of the vulnerable method overloads inside their browser. The attacker can thus inject scripts that run in the victims browser context and can extract or modify secrets from this context. The vulnerability has been fixed in [email protected]. As a workaround, sanitize user input before passing it to the output method.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0028 20th percentileScored 2026-11-07
Fix Fixed jsPDF (parallax): 4.2.1jspdf (npm): 4.2.1Red Hat: 2 advisories

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
parallaxjsPDFbefore 4.2.14.2.1Patch availableCNA
—jspdf (npm)before 4.2.14.2.1Patch availableGHSA-wfv2-pwc8-crg5
  • jsPDF Vendorparallax Affected before 4.2.1 Fixed in 4.2.1 Patch available CNA
  • jspdf (npm) Vendor— Affected before 4.2.1 Fixed in 4.2.1 Patch available GHSA-wfv2-pwc8-crg5

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:*before 4.2.1Vulnerableparallax
  • cpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:* Versions before 4.2.1 Vulnerable ·parallax

Remediation

  • Fix · CNA jsPDF (parallax) Fixed in 4.2.1
  • Fix · GHSA-wfv2-pwc8-crg5 jspdf (npm) Fixed in 4.2.1 Advisory →

Red Hat 2 advisories

  • RHSA-2026:7128 Released 2026-04-08 · Red Hat rating Important
    RHACS 4.9.5 security and bug fix update
    • Red Hat Advanced Cluster Security 4.9 registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8, registry.redhat.io/advanced-cluster-security/rhacs-rhel8-operator, registry.redhat.io/advanced-cluster-security/rhacs-roxctl-rhel8 +1
  • RHSA-2026:7110 Released 2026-04-08 · Red Hat rating Important
    RHACS 4.8.10 security and bug fix update
    • Red Hat Advanced Cluster Security 4.8 registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8, registry.redhat.io/advanced-cluster-security/rhacs-rhel8-operator, registry.redhat.io/advanced-cluster-security/rhacs-roxctl-rhel8 +1

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Advanced Cluster Security 4.8Fixed RHSA-2026:7110
Red Hat Advanced Cluster Security 4.9Fixed RHSA-2026:7128
Not affected: 2 products
  • Red Hat Advanced Cluster Security 4.8
  • Red Hat Advanced Cluster Security 4.9

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-31938
  2. 2026-10-03 Alias added: GHSA-wfv2-pwc8-crg5

References

  • TI-2026-20644 jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions CVSS 4.0HIGH 8.7
  • TI-2025-35693 jsPDF Parsing of Corrupt PNGs Leads to Potential Denial of Service (DoS) CVSS 4.0HIGH 8.7
  • TI-2025-21292 jsPDF Bypass Regular Expression Denial of Service (ReDoS) CVSS 4.0HIGH 8.7
  • TI-2025-41976 jsPDF has Local File Inclusion/Path Traversal vulnerability CVSS 4.0CRITICAL 9.2
  • TI-2026-20823 jsPDF has PDF Object Injection via Unsanitized Input in addJS Method CVSS 3.1HIGH 8.8
  • TI-2026-19451 jsPDF Affected by Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder CVSS 4.0HIGH 8.7
See all 14 →

Sources