{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-118670","id":"CVE-2026-118670","title":"OHIF Viewers XSS in DICOM PDF extension","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 Enc","descriptionLong":"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.","published":"2026-11-06T17:29:15.266Z","updated":"2026-11-14T02:30:22.810443323Z","reserved":"2026-10-28T17:25:37.562Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L","rating":"high","source":"GitHub"}],"rating":"high","products":["OHIF Viewers"],"affectedProducts":[{"vendor":"OHIF","product":"Viewers","defaultStatus":null,"versions":[{"version":">= 3.5.0-beta.0, < 3.12.15","status":"affected"},{"version":">= 3.13.0-beta.0, < 3.13.7","status":"affected"},{"version":">= 3.14.0-beta.0, < 3.14.0-beta.19","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@ohif/extension-dicom-pdf","purl":"pkg:npm/%40ohif/extension-dicom-pdf","ranges":[">=3.5.0-beta.0 <3.12.18",">=3.13.0-beta.0 <3.13.10",">=3.14.0-beta.0 <3.14.0-beta.36"],"fixed":["3.12.18","3.13.10","3.14.0-beta.36"],"advisory":"GHSA-xwgp-w3pj-q5h3"}],"cwes":["CWE-79"],"aliases":["GHSA-xwgp-w3pj-q5h3"],"references":[{"url":"https://github.com/OHIF/Viewers/security/advisories/GHSA-xwgp-w3pj-q5h3","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/OHIF/Viewers/pull/6228","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/OHIF/Viewers/commit/db546701bd5f2be9031c835f1de5c40aacd3dc62","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/OHIF/Viewers/commit/ef0811c66cdb04ba07ffaba145cf66ce01486899","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/OHIF/Viewers/commit/f0dba789a313f40fe7e8a8cbec322a8d8a491d76","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/OHIF/Viewers/releases/tag/v3.12.15","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/OHIF/Viewers/releases/tag/v3.13.7","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/OHIF/Viewers/releases/tag/v3.14.0-beta.19","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118670.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118670","tags":["advisory"]},{"url":"https://github.com/OHIF/Viewers","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00421,"epssPercentile":0.37118,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-118670","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118670","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-118670","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xwgp-w3pj-q5h3","ok":true,"note":"GHSA-xwgp-w3pj-q5h3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-118670","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}