Search for vulnerabilities
| Vulnerability ID | VCID-e3t3-9khr-kyhb |
| Aliases |
CVE-2026-31938
GHSA-wfv2-pwc8-crg5 |
| 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 jspdf@4.2.1. As a workaround, sanitize user input before passing it to the output method. |
| Status | Published |
| Exploitability | 0.5 |
| Weighted Severity | 9.0 |
| Risk | 4.5 |
| Affected and Fixed Packages | Package Details |
| Reference id | Reference type | URL |
|---|---|---|
| https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-31938.json | ||
| https://api.first.org/data/v1/epss?cve=CVE-2026-31938 | ||
| https://github.com/parallax/jsPDF | ||
| https://nvd.nist.gov/vuln/detail/CVE-2026-31938 | ||
| 2448550 | https://bugzilla.redhat.com/show_bug.cgi?id=2448550 | |
| 87a40bbd07e6b30575196370670b41f264aa78d7 | https://github.com/parallax/jsPDF/commit/87a40bbd07e6b30575196370670b41f264aa78d7 | |
| GHSA-wfv2-pwc8-crg5 | https://github.com/advisories/GHSA-wfv2-pwc8-crg5 | |
| GHSA-wfv2-pwc8-crg5 | https://github.com/parallax/jsPDF/security/advisories/GHSA-wfv2-pwc8-crg5 | |
| RHSA-2026:7110 | https://access.redhat.com/errata/RHSA-2026:7110 | |
| RHSA-2026:7128 | https://access.redhat.com/errata/RHSA-2026:7128 | |
| v4.2.1 | https://github.com/parallax/jsPDF/releases/tag/v4.2.1 |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Percentile | 0.16154 |
| EPSS Score | 0.00051 |
| Published At | June 11, 2026, 12:55 p.m. |
| Date | Actor | Action | Source | VulnerableCode Version |
|---|---|---|---|---|
| 2026-06-11T16:44:47.434877+00:00 | Vulnrichment | Import | https://github.com/cisagov/vulnrichment/blob/develop/2026/31xxx/CVE-2026-31938.json | 38.6.0 |