← Übersicht Nicht im beobachteten Stack

jsPDF has HTML Injection in New Window paths

CVE-2026-31938 · GHSA-wfv2-pwc8-crg5

Kritisch · CVSS 9.6 Red Hat: Important Netzwerk · ohne Login · Nutzerinteraktion Kein Fix bekannt

Veröffentlicht
17.03.2026 18:07
Zuletzt geändert
10.09.2026
EPSS (30 Tage)
0.3 %
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L

Beschreibung

Originaltext der Quelle, nicht übersetzt.

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 beim Hersteller

Red Hat stuft seine Produktlinien ein: 2 behoben, 2 nicht betroffen.

Red Hat Advanced Cluster Security 4.8 Behoben advanced-cluster-security RHSA-2026:7110
Red Hat Advanced Cluster Security 4.9 Behoben advanced-cluster-security RHSA-2026:7128
Nicht betroffen (2)
Red Hat Advanced Cluster Security 4.8Nicht betroffenverwundbarer Code nicht enthaltenadvanced-cluster-security
Red Hat Advanced Cluster Security 4.9Nicht betroffenverwundbarer Code nicht enthaltenadvanced-cluster-security
Weitere betroffene Pakete (7)
CVEparallax/jsPDFkein Fix bekanntCVE-2026-31938
NVDparall:jspdf4.2.1CVE-2026-31938
TuxCare:npmjspdf2.5.2-tuxcare.0 → 2.5.2-tuxcare.8CLSA-2026-1773620214
TuxCare:npmjspdf3.0.4-tuxcare.0 → 3.0.4-tuxcare.7CLSA-2026-1775176117
TuxCare:npmjspdf2.5.1-tuxcare.0 → 2.5.1-tuxcare.1CLSA-2026-1780534264
TuxCare:npmjspdf1.4.1-tuxcare.0 → 1.4.1-tuxcare.2CLSA-2026-1780966320
npmjspdf4.2.1GHSA-wfv2-pwc8-crg5

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Netzwerk · ohne Login · Nutzerinteraktion) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.