# CVE-2026-118670 - OHIF Viewers: DOM-Based Cross Site Scripting (XSS) through MIME type of document

DevFeed: [CVE-2026-118670 - OHIF Viewers: DOM-Based Cross Site Scripting (XSS) through MIME type of document](<https://devfeed.tech/articles/cve-2026-118670-ohif-viewers-dom-based-cross-site-scripting-xss-through-mime-type-of-document-121557.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-118670>)

Author: CVEFEED.io; github.com

Published: 2026-11-06T18:17:57Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [XSS](<https://devfeed.tech/topics/xss.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [authentication-tokens](<https://devfeed.tech/tags/authentication-tokens.md>), [blob](<https://devfeed.tech/tags/blob.md>), [cross-site-scripting](<https://devfeed.tech/tags/cross-site-scripting.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-118670](<https://devfeed.tech/tags/cve-2026-118670.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [html](<https://devfeed.tech/tags/html.md>), [mime](<https://devfeed.tech/tags/mime.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [script](<https://devfeed.tech/tags/script.md>), [storage](<https://devfeed.tech/tags/storage.md>), [tokens](<https://devfeed.tech/tags/tokens.md>), [xss](<https://devfeed.tech/tags/xss.md>)

## AI overview

OHIF's dicom-pdf extension uses the DICOM-provided MIME type for embedded document bytes, then places the resulting Blob URL in an object element. A malicious document labeled as HTML can therefore run script with the OHIF origin, potentially accessing session storage, authentication tokens, and same-origin PACS requests. It may reach a victim through a locally opened DICOM object, a shared PACS, or a DICOMweb source. The issue affects versions from 3.5.0-beta.0 up to the fixes in 3.12.15, 3.13.7, and 3.14.0-beta.19.

## Source excerpt

CVE ID :CVE-2026-118670 Published : Nov. 6, 2026, 6:17 p.m. | 1 hour, 41 minutes ago 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. Severity: 8.8 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...