Vulnerabilities
Vulnerable Software

Vulnerability Details CVE-2026-31938

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 jspdf@4.2.1. As a workaround, sanitize user input before passing it to the output method.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.0
EPSS Ranking 11.1%
CVSS Severity
CVSS v3 Score 9.6
Products affected by CVE-2026-31938
  • Parall » Jspdf » Version: N/A
    cpe:2.3:a:parall:jspdf:-
  • Parall » Jspdf » Version: 0.9.0
    cpe:2.3:a:parall:jspdf:0.9.0
  • Parall » Jspdf » Version: 1.0.106
    cpe:2.3:a:parall:jspdf:1.0.106
  • Parall » Jspdf » Version: 1.0.115
    cpe:2.3:a:parall:jspdf:1.0.115
  • Parall » Jspdf » Version: 1.0.116
    cpe:2.3:a:parall:jspdf:1.0.116
  • Parall » Jspdf » Version: 1.0.119
    cpe:2.3:a:parall:jspdf:1.0.119
  • Parall » Jspdf » Version: 1.0.138
    cpe:2.3:a:parall:jspdf:1.0.138
  • Parall » Jspdf » Version: 1.0.150
    cpe:2.3:a:parall:jspdf:1.0.150
  • Parall » Jspdf » Version: 1.0.178
    cpe:2.3:a:parall:jspdf:1.0.178
  • Parall » Jspdf » Version: 1.0.272
    cpe:2.3:a:parall:jspdf:1.0.272
  • Parall » Jspdf » Version: 1.1.135
    cpe:2.3:a:parall:jspdf:1.1.135
  • Parall » Jspdf » Version: 1.2.60
    cpe:2.3:a:parall:jspdf:1.2.60
  • Parall » Jspdf » Version: 1.2.61
    cpe:2.3:a:parall:jspdf:1.2.61
  • Parall » Jspdf » Version: 1.3.0
    cpe:2.3:a:parall:jspdf:1.3.0
  • Parall » Jspdf » Version: 1.3.1
    cpe:2.3:a:parall:jspdf:1.3.1
  • Parall » Jspdf » Version: 1.3.2
    cpe:2.3:a:parall:jspdf:1.3.2
  • Parall » Jspdf » Version: 1.3.3
    cpe:2.3:a:parall:jspdf:1.3.3
  • Parall » Jspdf » Version: 1.3.4
    cpe:2.3:a:parall:jspdf:1.3.4
  • Parall » Jspdf » Version: 1.3.5
    cpe:2.3:a:parall:jspdf:1.3.5
  • Parall » Jspdf » Version: 1.4.0
    cpe:2.3:a:parall:jspdf:1.4.0
  • Parall » Jspdf » Version: 1.4.1
    cpe:2.3:a:parall:jspdf:1.4.1
  • Parall » Jspdf » Version: 1.5.0
    cpe:2.3:a:parall:jspdf:1.5.0
  • Parall » Jspdf » Version: 1.5.1
    cpe:2.3:a:parall:jspdf:1.5.1
  • Parall » Jspdf » Version: 1.5.2
    cpe:2.3:a:parall:jspdf:1.5.2
  • Parall » Jspdf » Version: 1.5.3
    cpe:2.3:a:parall:jspdf:1.5.3
  • Parall » Jspdf » Version: 2.0.0
    cpe:2.3:a:parall:jspdf:2.0.0
  • Parall » Jspdf » Version: 2.1.1
    cpe:2.3:a:parall:jspdf:2.1.1
  • Parall » Jspdf » Version: 2.2.0
    cpe:2.3:a:parall:jspdf:2.2.0
  • Parall » Jspdf » Version: 2.3.0
    cpe:2.3:a:parall:jspdf:2.3.0
  • Parall » Jspdf » Version: 2.3.1
    cpe:2.3:a:parall:jspdf:2.3.1
  • Parall » Jspdf » Version: 2.4.0
    cpe:2.3:a:parall:jspdf:2.4.0
  • Parall » Jspdf » Version: 2.5.0
    cpe:2.3:a:parall:jspdf:2.5.0
  • Parall » Jspdf » Version: 2.5.1
    cpe:2.3:a:parall:jspdf:2.5.1
  • Parall » Jspdf » Version: 2.5.2
    cpe:2.3:a:parall:jspdf:2.5.2
  • Parall » Jspdf » Version: 3.0.0
    cpe:2.3:a:parall:jspdf:3.0.0
  • Parall » Jspdf » Version: 3.0.1
    cpe:2.3:a:parall:jspdf:3.0.1
  • Parall » Jspdf » Version: 3.0.2
    cpe:2.3:a:parall:jspdf:3.0.2
  • Parall » Jspdf » Version: 3.0.3
    cpe:2.3:a:parall:jspdf:3.0.3
  • Parall » Jspdf » Version: 3.0.4
    cpe:2.3:a:parall:jspdf:3.0.4


Contact Us

Shodan ® - All rights reserved