{"id":"GHSA-xwgp-w3pj-q5h3","revision":null,"records":[{"revision":"20dd510c06c8464cadcebe9dc3273404","observedAt":"2026-11-06T19:02:40.562+00:00","statement":{"source":"cve-program","id":"CVE-2026-118670","aliases":[],"title":"OHIF Viewers: DOM-Based Cross Site Scripting (XSS) through MIME type of document","description":"OHIF Viewers is a zero-footprint DICOM viewer with shared extension packages. From 3.5.0-beta.0 until 3.12.15, 3.13.7, and 3.14.0-beta.19, the dicom-pdf extension reads the attacker-controlled MIMETypeOfEncapsulatedDocument value in extensions/dicom-pdf/src/getSopClassHandlerModule.js and uses it as the Blob media type for the attacker-controlled EncapsulatedDocument bytes. When a victim opens Encapsulated PDF SOP Class 1.2.840.10008.5.1.4.1.1.104.1, extensions/dicom-pdf/src/viewports/OHIFCornerstonePdfViewport.tsx embeds the Blob URL in an object element. A Blob labeled as HTML is handled as HTML despite the application/pdf object hint, and the Blob inherits the OHIF origin, allowing embedded script to access session storage, authentication tokens, and same-origin PACS requests. The malicious DICOM object may be opened locally, uploaded to a shared PACS, or supplied by a DICOMweb source. This issue is fixed in source versions 3.12.15, 3.13.7, and 3.14.0-beta.19.","state":0,"publishedAt":"2026-11-06T17:29:15.266+00:00","modifiedAt":"2026-11-06T17:47:50.262+00:00","affected":[{"ecosystem":"Vendor product","name":"Viewers","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"OHIF\",\n                    \"product\": \"Viewers\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 3.5.0-beta.0, < 3.12.15\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 3.13.0-beta.0, < 3.13.7\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 3.14.0-beta.0, < 3.14.0-beta.19\",\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:L/A:L","score":8.8,"severity":"HIGH"}],"references":["https://github.com/OHIF/Viewers/security/advisories/GHSA-xwgp-w3pj-q5h3","https://github.com/OHIF/Viewers/pull/6228","https://github.com/OHIF/Viewers/commit/db546701bd5f2be9031c835f1de5c40aacd3dc62","https://github.com/OHIF/Viewers/commit/ef0811c66cdb04ba07ffaba145cf66ce01486899","https://github.com/OHIF/Viewers/commit/f0dba789a313f40fe7e8a8cbec322a8d8a491d76","https://github.com/OHIF/Viewers/releases/tag/v3.12.15","https://github.com/OHIF/Viewers/releases/tag/v3.13.7","https://github.com/OHIF/Viewers/releases/tag/v3.14.0-beta.19"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-118670","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-118670","identifiers":["CVE-2026-118670"]},"retained":false,"historicalAffected":[]},{"revision":"fefe6ecddfde40c8b88a1485cfb6d3f4","observedAt":"2026-11-16T17:51:06.776+00:00","statement":{"source":"euvd","id":"EUVD-2026-118385","aliases":["CVE-2026-118670","GHSA-xwgp-w3pj-q5h3"],"title":"OHIF Viewers is a zero-footprint DICOM viewer with shared extension packages. From 3.5.0-beta.0 until 3.12.15, 3.13.7, and 3.14.0-beta.19, the dicom-pdf extension reads the attacker-controlled MIMETypeOfEncapsulatedDocument value in extensi…","description":"OHIF Viewers is a zero-footprint DICOM viewer with shared extension packages. From 3.5.0-beta.0 until 3.12.15, 3.13.7, and 3.14.0-beta.19, the dicom-pdf extension reads the attacker-controlled MIMETypeOfEncapsulatedDocument value in extensions/dicom-pdf/src/getSopClassHandlerModule.js and uses it as the Blob media type for the attacker-controlled EncapsulatedDocument bytes. When a victim opens Encapsulated PDF SOP Class 1.2.840.10008.5.1.4.1.1.104.1, extensions/dicom-pdf/src/viewports/OHIFCornerstonePdfViewport.tsx embeds the Blob URL in an object element. A Blob labeled as HTML is handled as HTML despite the application/pdf object hint, and the Blob inherits the OHIF origin, allowing embedded script to access session storage, authentication tokens, and same-origin PACS requests. The malicious DICOM object may be opened locally, uploaded to a shared PACS, or supplied by a DICOMweb source. This issue is fixed in source versions 3.12.15, 3.13.7, and 3.14.0-beta.19.","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:L/A:L","score":8.8,"severity":null}],"references":["https://github.com/OHIF/Viewers/security/advisories/GHSA-xwgp-w3pj-q5h3","https://github.com/OHIF/Viewers/pull/6228","https://github.com/OHIF/Viewers/commit/db546701bd5f2be9031c835f1de5c40aacd3dc62","https://github.com/OHIF/Viewers/commit/ef0811c66cdb04ba07ffaba145cf66ce01486899","https://github.com/OHIF/Viewers/commit/f0dba789a313f40fe7e8a8cbec322a8d8a491d76","https://github.com/OHIF/Viewers/releases/tag/v3.12.15","https://github.com/OHIF/Viewers/releases/tag/v3.13.7","https://github.com/OHIF/Viewers/releases/tag/v3.14.0-beta.19"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-118385","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Nov 6, 2026, 5:29:15 PM","dateUpdated":"Nov 6, 2026, 5:47:50 PM"},"relatedAdvisories":[],"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-118385","identifiers":["EUVD-2026-118385","CVE-2026-118670","GHSA-xwgp-w3pj-q5h3"]},"retained":false,"historicalAffected":[]},{"revision":"9963456481d7482fa4517c68e789e4b0","observedAt":"2026-11-14T17:37:13.889+00:00","statement":{"source":"nvd","id":"CVE-2026-118670","aliases":[],"title":"OHIF Viewers is a zero-footprint DICOM viewer with shared extension packages. From 3.5.0-beta.0 until 3.12.15, 3.13.7, and 3.14.0-beta.19, the dicom-pdf extension reads the attacker-controlled MIMETypeOfEncapsulatedDocument value in extensi…","description":"OHIF Viewers is a zero-footprint DICOM viewer with shared extension packages. From 3.5.0-beta.0 until 3.12.15, 3.13.7, and 3.14.0-beta.19, the dicom-pdf extension reads the attacker-controlled MIMETypeOfEncapsulatedDocument value in extensions/dicom-pdf/src/getSopClassHandlerModule.js and uses it as the Blob media type for the attacker-controlled EncapsulatedDocument bytes. When a victim opens Encapsulated PDF SOP Class 1.2.840.10008.5.1.4.1.1.104.1, extensions/dicom-pdf/src/viewports/OHIFCornerstonePdfViewport.tsx embeds the Blob URL in an object element. A Blob labeled as HTML is handled as HTML despite the application/pdf object hint, and the Blob inherits the OHIF origin, allowing embedded script to access session storage, authentication tokens, and same-origin PACS requests. The malicious DICOM object may be opened locally, uploaded to a shared PACS, or supplied by a DICOMweb source. This issue is fixed in source versions 3.12.15, 3.13.7, and 3.14.0-beta.19.","state":0,"publishedAt":"2026-11-06T18:17:57.34+00:00","modifiedAt":"2026-11-12T20:04:52.377+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:L/A:L","score":8.8,"severity":"HIGH"}],"references":["https://github.com/OHIF/Viewers/commit/db546701bd5f2be9031c835f1de5c40aacd3dc62","https://github.com/OHIF/Viewers/commit/ef0811c66cdb04ba07ffaba145cf66ce01486899","https://github.com/OHIF/Viewers/commit/f0dba789a313f40fe7e8a8cbec322a8d8a491d76","https://github.com/OHIF/Viewers/pull/6228","https://github.com/OHIF/Viewers/releases/tag/v3.12.15","https://github.com/OHIF/Viewers/releases/tag/v3.13.7","https://github.com/OHIF/Viewers/releases/tag/v3.14.0-beta.19","https://github.com/OHIF/Viewers/security/advisories/GHSA-xwgp-w3pj-q5h3"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-118670","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Awaiting Analysis","weaknesses":["CWE-79"],"productCriteria":[],"sourceDates":{"published":"2026-11-06T18:17:57.340","lastModified":"2026-11-12T20:04:52.377"},"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-118670","identifiers":["CVE-2026-118670"]},"retained":false,"historicalAffected":[]},{"revision":"b1687a1b6efb4edcb41217360624929b","observedAt":"2026-11-10T16:21:51.228+00:00","statement":{"source":"osv","id":"GHSA-xwgp-w3pj-q5h3","aliases":["CVE-2026-118670"],"title":"OHIF Viewers: DOM-Based Cross Site Scripting (XSS) through MIME type of document","description":"### Summary\nAn XSS (Cross-Site Scripting) vulnerability occurs when an attacker is able to inject their own JavaScript code into a web page's source, which is subsequently processed by the victim's browser. A common cause of this vulnerability is the failure to validate user-supplied data before displaying it within the vulnerable application without proper filtering. To exploit the vulnerability, an attacker must input HTML code into a vulnerable parameter containing structures that trigger the execution of JavaScript. The DOM XSS variant occurs when user-supplied data is processed by a client-side script; if this data is not handled correctly by the script itself, it becomes possible to inject additional JavaScript commands.\n\n**Attacker model:** Any actor who can get a DICOM object in front of a victim — email a `.dcm`\nfor local viewing, upload to a shared PACS, or operate/compromise a DICOMweb source.\n**Preconditions:** Victim opens a study whose SOP Class is Encapsulated PDF\n(`1.2.840.10008.5.1.4.1.1.104.1`) and OHIF's `dicom-pdf` extension renders it (default in the\nstandard modes).\n\n#### Taint path\n\n**Source** — two attacker-controlled tags on the encapsulated-document instance:\n- `MIMETypeOfEncapsulatedDocument` (0042,0012)\n- `EncapsulatedDocument` (0042,0011) — the raw document bytes\n\n`extensions/dicom-pdf/src/getSopClassHandlerModule.js:15,20` reads the MIME tag with no\nvalidation and passes it as `defaultType`:\n\n```js\nconst { SeriesDescription = 'PDF', MIMETypeOfEncapsulatedDocument } = instance;\n...\nconst renderedUrlParams = {\n  instance,\n  tag: 'EncapsulatedDocument',\n  defaultType: MIMETypeOfEncapsulatedDocument || 'application/pdf',  // attacker-controlled\n  singlepart: 'pdf',\n};\nconst renderedUrl = dataSource.retrieve.directURL(renderedUrlParams);\n```\n\n**Sink** — `defaultType` becomes the `Blob` type in all three retrieval paths:\n\n*Local file (no server required):* `extensions/default/src/DicomLocalDataSource/index.js:120-131`\n```js\ndirectURL: params => {\n  const { instance, tag, defaultType } = params;\n  const value = instance[tag];\n  if (value instanceof Array && value[0] instanceof ArrayBuffer) {\n    return URL.createObjectURL(new Blob([value[0]], { type: defaultType }));  // attacker MIME\n  }\n},\n```\n\n*DICOMweb InlineBinary:* `extensions/default/src/utils/getDirectURL.ts:40-44` →\n`platform/core/src/utils/b64toBlob.js:18`\n```js\nif (value.InlineBinary) {\n  const blob = utils.b64toBlob(value.InlineBinary, defaultType);   // -> new Blob(..., { type: defaultType })\n  value.DirectRetrieveURL = URL.createObjectURL(blob);\n  return value.DirectRetrieveURL;\n}\n```\n\n*DICOMweb bulk data:* `extensions/default/src/utils/getDirectURL.ts:52-55`\n```js\nreturn value.retrieveBulkData(options).then(arr => {\n  value.DirectRetrieveURL = URL.createObjectURL(new Blob([arr], { type: defaultType }));\n  return value.DirectRetrieveURL;\n});\n```\n\n**Render** — `extensions/dicom-pdf/src/viewports/OHIFCornerstonePdfViewport.tsx:86-92`\n```tsx\n<object\n  data={url}                 {/* blob: URL whose stored MIME = attacker's MIMETypeOfEncapsulatedDocument */}\n  type=\"application/pdf\"     {/* only a hint; overridden by the blob's own Content-Type */}\n  className={style}\n>\n```\n\n**Why it fires.** A `blob:` URL stores the MIME type passed at `new Blob(..., { type })`\nconstruction. When such a URL is navigated/embedded, the browser uses the blob's stored\nContent-Type to choose a handler; the `<object type=\"application/pdf\">` attribute is a\npre-load hint, not an override. A blob created with `type: 'text/html'` therefore renders as an\nHTML document, and because `blob:` URLs inherit the creating page's origin, any `<script>` in it\nexecutes **in the OHIF origin** — with access to `localStorage`/`sessionStorage`, auth tokens,\nand same-origin requests to the PACS.\n\n### Impact\nUsers using the applications. If the application is behind authentication then session can be stolen. If on the same DNS name some other applications are hosted, they are also impacted.\n\n### Patches\n\nFixed in `@ohif/extension-dicom-pdf` `3.12.18`, `3.13.10` and `3.14.0-beta.36` (fix: https://github.com/OHIF/Viewers/pull/6228).\nIf you build OHIF from source, the fix first landed in tags `3.12.15`, `3.13.7` and `3.14.0-beta.19`.\nVersions `3.5` to `3.11` will not receive a fix. Upgrade to a patched `3.12`, `3.13` or `3.14` version.","state":0,"publishedAt":"2026-11-10T15:57:51+00:00","modifiedAt":"2026-11-10T16:15:05.4091896+00:00","affected":[{"ecosystem":"npm","name":"@ohif/extension-dicom-pdf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.5.0-beta.0"},{"kind":"fixed","version":"3.12.18"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@ohif/extension-dicom-pdf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.13.0-beta.0"},{"kind":"fixed","version":"3.13.10"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@ohif/extension-dicom-pdf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.14.0-beta.0"},{"kind":"fixed","version":"3.14.0-beta.36"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/OHIF/Viewers/security/advisories/GHSA-xwgp-w3pj-q5h3","https://nvd.nist.gov/vuln/detail/CVE-2026-118670","https://github.com/OHIF/Viewers/pull/6228","https://github.com/OHIF/Viewers/commit/db546701bd5f2be9031c835f1de5c40aacd3dc62","https://github.com/OHIF/Viewers/commit/ef0811c66cdb04ba07ffaba145cf66ce01486899","https://github.com/OHIF/Viewers/commit/f0dba789a313f40fe7e8a8cbec322a8d8a491d76","https://github.com/OHIF/Viewers","https://github.com/OHIF/Viewers/releases/tag/v3.12.15","https://github.com/OHIF/Viewers/releases/tag/v3.13.7","https://github.com/OHIF/Viewers/releases/tag/v3.14.0-beta.19"],"sourceUrl":"https://github.com/advisories/GHSA-xwgp-w3pj-q5h3","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-xwgp-w3pj-q5h3","identifiers":["GHSA-xwgp-w3pj-q5h3","CVE-2026-118670"]},"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-16T22:28:24.4991351+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T22:28:24.4991351+00:00","lastSuccessAt":"2026-11-16T22:28:24.7043575+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.7043586+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-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-ab503f9090500b9c00a37f872f1b5d75fdf63c0433c081f17e896b89bc1acb9c","complete":true,"records":426221,"lastAttemptAt":"2026-11-16T23:26:27.8678088+00:00","lastSuccessAt":"2026-11-16T23:26:27.6596772+00:00","error":null,"lastVerifiedAt":"2026-11-16T23:26:27.8678088+00:00","snapshotPublishedAt":"2026-11-16T22:28:30+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-a154cbc1da6344eebf61cc2b79e84032","complete":true,"records":13831,"lastAttemptAt":"2026-11-16T22:29:29.8673047+00:00","lastSuccessAt":"2026-11-16T22:29:29.864+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:29:29.864+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13885,"expectedIdentifiers":13885,"failedIdentifiers":0},{"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-16T22:28:24.4991351+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T22:28:24.4991351+00:00","lastSuccessAt":"2026-11-16T22:28:24.7050614+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.7050618+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-e852cf3f102d4dfc8420eba9ed8027fd","complete":false,"records":13844,"lastAttemptAt":"2026-11-16T22:28:51.1313357+00:00","lastSuccessAt":"2026-11-16T22:28:51.121+00:00","error":"10 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T22:28:51.121+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13574,"expectedIdentifiers":13885,"failedIdentifiers":10},{"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-16T22:28:24.3319179+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.3319179+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-16T23:26:29.0570388+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T23:26:29.0570388+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-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T22:28:24.4567855+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.4567855+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+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-879bf87060e1e5a31d5f9d7958b545032385ae9cf57c2a5b470e1d57f9693bf8","complete":true,"records":232556,"lastAttemptAt":"2026-11-16T22:28:24.1750579+00:00","lastSuccessAt":"2026-11-16T22:28:22.9672905+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.1750579+00:00","snapshotPublishedAt":"2026-11-16T22:18:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}