{"id":"GHSA-wfv2-pwc8-crg5","revision":null,"records":[{"revision":"ec62978338614373b52f7c934329ea94","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-31938","aliases":[],"title":"jsPDF has HTML Injection in New Window paths","description":"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.","state":0,"publishedAt":"2026-03-18T03:05:44.964+00:00","modifiedAt":"2026-09-07T12:04:46.902+00:00","affected":[{"ecosystem":"Vendor product","name":"jsPDF","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"parallax\",\n                    \"product\": \"jsPDF\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 4.2.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L","score":9.6,"severity":"CRITICAL"}],"references":["https://github.com/parallax/jsPDF/security/advisories/GHSA-wfv2-pwc8-crg5","https://github.com/parallax/jsPDF/commit/87a40bbd07e6b30575196370670b41f264aa78d7","https://github.com/parallax/jsPDF/releases/tag/v4.2.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-31938","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-31938","identifiers":["CVE-2026-31938"]},"retained":false,"historicalAffected":[]},{"revision":"bbf7eacd2f894befaa030b393f4d51bd","observedAt":"2026-11-15T09:32:32.326+00:00","statement":{"source":"euvd","id":"EUVD-2026-12755","aliases":["CVE-2026-31938","GHSA-wfv2-pwc8-crg5"],"title":"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 …","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L","score":9.6,"severity":null}],"references":["https://github.com/parallax/jsPDF/security/advisories/GHSA-wfv2-pwc8-crg5","https://github.com/parallax/jsPDF/commit/87a40bbd07e6b30575196370670b41f264aa78d7","https://github.com/parallax/jsPDF/releases/tag/v4.2.1"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-12755","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Mar 18, 2026, 3:05:44 AM","dateUpdated":"Sep 7, 2026, 12:04:46 PM"},"relatedAdvisories":[{"id":"RHSA-2026:7110","title":"Red Hat Security Advisory: RHACS 4.8.10 security and bug fix update","vulnerabilityIds":["CVE-2026-25128","CVE-2026-25535","CVE-2026-25755","CVE-2026-25896","CVE-2026-25940","CVE-2026-26278","CVE-2026-27942","CVE-2026-29074","CVE-2026-31898","CVE-2026-31938","CVE-2026-33036","CVE-2026-33186"]},{"id":"RHSA-2026:7128","title":"Red Hat Security Advisory: RHACS 4.9.5 security and bug fix update","vulnerabilityIds":["CVE-2026-25128","CVE-2026-25535","CVE-2026-25755","CVE-2026-25896","CVE-2026-25940","CVE-2026-26278","CVE-2026-27942","CVE-2026-31898","CVE-2026-31938","CVE-2026-33036","CVE-2026-33186"]},{"id":"WID-SEC-W-2026-2933","title":"Splunk SOAR: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2025-13465","CVE-2025-13473","CVE-2025-14550","CVE-2025-15599","CVE-2025-53859","CVE-2025-6545","CVE-2025-6547","CVE-2025-66221","CVE-2025-67724","CVE-2025-67725","CVE-2025-67726","CVE-2025-68428","CVE-2025-69873","CVE-2026-0540","CVE-2026-1207","CVE-2026-1285","CVE-2026-1287","CVE-2026-1312","CVE-2026-1642","CVE-2026-2004","CVE-2026-2005","CVE-2026-2006","CVE-2026-21226","CVE-2026-21860","CVE-2026-22702","CVE-2026-22815","CVE-2026-2391","CVE-2026-24001","CVE-2026-24040","CVE-2026-24043","CVE-2026-24133","CVE-2026-24737","CVE-2026-25535","CVE-2026-25673","CVE-2026-25674","CVE-2026-25755","CVE-2026-25940","CVE-2026-26007","CVE-2026-26996","CVE-2026-27199","CVE-2026-2739","CVE-2026-27651","CVE-2026-27654","CVE-2026-27784","CVE-2026-27959","CVE-2026-28277","CVE-2026-28684","CVE-2026-28753","CVE-2026-28755","CVE-2026-29063","CVE-2026-2950","CVE-2026-30922","CVE-2026-31898","CVE-2026-31938","CVE-2026-31958","CVE-2026-32141","CVE-2026-32597","CVE-2026-32647","CVE-2026-33228","CVE-2026-33532","CVE-2026-33671","CVE-2026-33672","CVE-2026-33750","CVE-2026-34513","CVE-2026-34514","CVE-2026-34515","CVE-2026-34516","CVE-2026-34517","CVE-2026-34518","CVE-2026-34519","CVE-2026-34520","CVE-2026-34525","CVE-2026-34601","CVE-2026-35536","CVE-2026-40087","CVE-2026-40460","CVE-2026-40701","CVE-2026-41066","CVE-2026-42215","CVE-2026-42284","CVE-2026-42934","CVE-2026-42945","CVE-2026-42946","CVE-2026-44243","CVE-2026-44244","CVE-2026-4800","CVE-2026-76356","CVE-2026-76357","CVE-2026-76358","CVE-2026-76359","CVE-2026-76360","CVE-2026-76361","CVE-2026-76362","CVE-2026-76363","CVE-2026-76364","CVE-2026-76365","CVE-2026-76366","CVE-2026-76367","CVE-2026-76368","CVE-2026-76369","CVE-2026-76370","CVE-2026-9256"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-12755","identifiers":["EUVD-2026-12755","CVE-2026-31938","GHSA-wfv2-pwc8-crg5"]},"retained":false,"historicalAffected":[]},{"revision":"b40d7dc2a323472cbe935af5b76c451f","observedAt":"2026-10-25T07:19:14.635+00:00","statement":{"source":"nvd","id":"CVE-2026-31938","aliases":[],"title":"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 …","description":"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.","state":0,"publishedAt":"2026-03-18T04:17:23.507+00:00","modifiedAt":"2026-08-18T12:18:06.707+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L","score":9.6,"severity":"CRITICAL"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"},{"system":"CVSS 3.1 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"severity":"HIGH"}],"references":["https://github.com/parallax/jsPDF/commit/87a40bbd07e6b30575196370670b41f264aa78d7","https://github.com/parallax/jsPDF/releases/tag/v4.2.1","https://github.com/parallax/jsPDF/security/advisories/GHSA-wfv2-pwc8-crg5","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"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-31938","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-79"],"productCriteria":["cpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2026-03-18T04:17:23.507","lastModified":"2026-08-18T12:18:06.707"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-31938","identifiers":["CVE-2026-31938"]},"retained":false,"historicalAffected":[]},{"revision":"1df027a42f89454a891fd7e772f020ba","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-wfv2-pwc8-crg5","aliases":["CVE-2026-31938"],"title":"jsPDF has HTML Injection in New Window paths","description":"### Impact\n\nUser 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 affected overloads and options are:\n\n* `\"pdfobjectnewwindow\"`: the `pdfObjectUrl` option and the entire options object, which is JSON-serialized and included verbatim in the generated HTML-string.\n* `\"pdfjsnewwindow\"`: the `pdfJsUrl` and `filename` options\n* `\"dataurlnewwindow\"`: the `filename` option\n\nThe 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.\n\nExample attack vector:\n\n```js\nimport { jsPDF } from 'jspdf';\nconst doc = new jsPDF();\n\nconst payload =  'x\\\"></iframe><script>window.__n=1</script><iframe src=\"';\n\ndoc.output('pdfjsnewwindow', {\n  filename: payload,\n  pdfJsUrl: 'viewer.html'\n});\n```\n\n### Patches\nThe vulnerability has been fixed in jspdf@4.2.1.\n\n### Workarounds\nSanitize user input before passing it to the output method.","state":0,"publishedAt":"2026-03-17T17:07:59+00:00","modifiedAt":"2026-09-10T03:50:41.5777317+00:00","affected":[{"ecosystem":"npm","name":"jspdf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.2.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/parallax/jsPDF/security/advisories/GHSA-wfv2-pwc8-crg5","https://nvd.nist.gov/vuln/detail/CVE-2026-31938","https://github.com/parallax/jsPDF/commit/87a40bbd07e6b30575196370670b41f264aa78d7","https://github.com/parallax/jsPDF","https://github.com/parallax/jsPDF/releases/tag/v4.2.1"],"sourceUrl":"https://github.com/advisories/GHSA-wfv2-pwc8-crg5","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-wfv2-pwc8-crg5","identifiers":["GHSA-wfv2-pwc8-crg5","CVE-2026-31938"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-15T09:26:06.7525529+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-15T09:26:06.7525529+00:00","lastSuccessAt":"2026-11-15T09:26:06.9410933+00:00","error":null,"lastVerifiedAt":"2026-11-15T09:26:06.941094+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-7de4d7559a5263003f03d9f70577ab06f92ba4178309f26fce53e22a4a959294-9e3d838f79cf8ff38c78723122cff976bed4490ddcf297ed0587cd3b1d7c5b04","complete":true,"records":425783,"lastAttemptAt":"2026-11-15T09:26:06.228816+00:00","lastSuccessAt":"2026-11-15T09:26:06.1945365+00:00","error":null,"lastVerifiedAt":"2026-11-15T09:26:06.228816+00:00","snapshotPublishedAt":"2026-11-15T08:30:19+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-ff9157aead1d4c57adc3edc2a4a92d82","complete":false,"records":13821,"lastAttemptAt":"2026-11-15T09:38:27.5598487+00:00","lastSuccessAt":"2026-11-15T09:38:27.544+00:00","error":"180 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-15T09:38:27.544+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13577,"expectedIdentifiers":13874,"failedIdentifiers":180},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-15T09:26:06.7525529+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-15T09:26:06.7525529+00:00","lastSuccessAt":"2026-11-15T09:26:06.9427316+00:00","error":null,"lastVerifiedAt":"2026-11-15T09:26:06.9427319+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-39f2794893ce49af81edbfe444e36bd6","complete":true,"records":13833,"lastAttemptAt":"2026-11-15T09:26:11.2401689+00:00","lastSuccessAt":"2026-11-15T08:26:34.303+00:00","error":null,"lastVerifiedAt":"2026-11-15T08:26:34.303+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13874,"expectedIdentifiers":13874,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-15T09:26:06.4945342+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-15T09:26:06.4945342+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-15T09:26:06.2866573+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-15T09:26:06.2866573+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-012aff9b2fb349d53e2c4bace6ca57956b6f5f9d82c1dc9fdc1c9b3c738f8977","complete":true,"records":3148,"lastAttemptAt":"2026-11-15T09:26:06.6048599+00:00","lastSuccessAt":"2026-11-14T04:57:03.8279646+00:00","error":null,"lastVerifiedAt":"2026-11-15T09:26:06.6048599+00:00","snapshotPublishedAt":"2026-11-14T03:02:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-878f718ccd076f540460423958c8e379b139b997b45858275573ecc4d702fe9a","complete":true,"records":232474,"lastAttemptAt":"2026-11-15T09:26:06.3921691+00:00","lastSuccessAt":"2026-11-15T05:33:06.8241102+00:00","error":null,"lastVerifiedAt":"2026-11-15T09:26:06.3921691+00:00","snapshotPublishedAt":"2026-11-15T04:33:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}