- 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.
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
- Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
- Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
- 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.
Referenzen
- github.com/parallax/jsPDF/security/advisories/GHSA-wfv2-pwc8-crg5
- github.com/parallax/jsPDF/commit/87a40bbd07e6b30575196370670b41f264aa78d7
- github.com/parallax/jsPDF/releases/tag/v4.2.1
- nvd.nist.gov/vuln/detail/CVE-2026-31938
- github.com/parallax/jsPDF
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31938.json
- access.redhat.com/security/cve/CVE-2026-31938
- bugzilla.redhat.com/show_bug.cgi
- www.cve.org/CVERecord