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) …
Critical CVSS 9.6
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 vict…
In-depth triage · Auto channel
No in-depth report has been generated yet (DR-003 v2 AI pipeline is under construction).
Affected products
- :
Sources
- NVD DATABASE
Original Links
- https://github.com/parallax/jsPDF/commit/87a40bbd07e6b30575196370670b41f264aa78d7 Patch
- https://github.com/parallax/jsPDF/releases/tag/v4.2.1 Product
- https://github.com/parallax/jsPDF/security/advisories/GHSA-wfv2-pwc8-crg5 Mitigation
- https://access.redhat.com/errata/RHSA-2026:7110
- https://access.redhat.com/errata/RHSA-2026:7128
- https://access.redhat.com/security/cve/CVE-2026-31938
- https://bugzilla.redhat.com/show_bug.cgi?id=2448550
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31938.json
Timeline
- nvd_ingest NVD