Skip to main content

OHIF Viewers CVE-2026-118670

| EUVDEUVD-2026-118385 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-11-06 GitHub_M GHSA-xwgp-w3pj-q5h3
8.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft DICOM with text/html MIME tag
  2. Delivery
    Upload to PACS or serve via DICOMweb
  3. Exploit
    Victim opens Encapsulated PDF study
  4. Execution
    Blob parsed as same-origin HTML
  5. Impact
    Steal auth tokens and issue PACS requests

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to open a study whose SOP Class is Encapsulated PDF (1.2.840.10008.5.1.4.1.1.104.1) rendered by OHIF's dicom-pdf extension, which is default in the standard modes. The attacker must control the DICOM instance's MIMETypeOfEncapsulatedDocument (0042,0012) tag - setting it to text/html - and the EncapsulatedDocument (0042,0011) bytes, delivered by opening a local .dcm, uploading to a shared PACS, or operating/compromising a DICOMweb source. Limiting factors: required user interaction (a victim must actually open the malicious study, UI:R); the dicom-pdf extension and the Encapsulated PDF SOP class must be in use; and affected versions are 3.5.0-beta.0 up to the patched 3.12.x/3.13.x/3.14 betas. No authentication is needed to craft the object (PR:N), and the local-file and DICOMweb paths need no server, so the practical gate is persuading the victim to view the study.

Impact

This is a genuine, well-substantiated DOM-based XSS (CWE-79, with CWE-434/CWE-436 interpretation-conflict elements) confirmed in detail by the vendor's own GHSA-xwgp-w3pj-q5h3 advisory, PR #6228, and the fixing commits, so the mechanism is not in doubt. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L = 8.8 High) is internally consistent with the description: network-delivered malicious DICOM, no attacker privileges, required victim interaction (opening the study), and a scope change because the blob: URL inherits the OHIF origin and can reach other same-DNS apps and the PACS backend. Weighing the signals: the vuln.today decision label is 'this_week' (not act_now/emergency); there is no CISA KEV listing (not confirmed actively exploited) and no EPSS score was supplied, so exploitation-probability cannot be quantified from the input. No public working exploit is identified, though the advisory publishes the complete source-to-sink taint path, which materially lowers the barrier to building one. The UI:R requirement is a real dampener on raw severity, but in a clinical PACS/DICOMweb workflow opening studies is routine, so that interaction is realistically obtained. Net: a real same-week priority for OHIF operators handling untrusted DICOM, driven by severity and detailed public disclosure rather than by evidence of in-the-wild attacks.

Exploit ScenarioDerived

An attacker crafts an Encapsulated PDF DICOM object whose MIMETypeOfEncapsulatedDocument tag is set to text/html and whose EncapsulatedDocument bytes contain a script payload, then emails the .dcm, uploads it to a shared PACS, or serves it from a DICOMweb source. When a clinician opens the study, the dicom-pdf extension wraps the bytes in a Blob typed text/html and embeds it via an <object>, so the browser parses it as HTML in the OHIF origin and runs the embedded script. No public working exploit is identified, but the vendor advisory documents the full taint path; exploitation needs network delivery (AV:N), low complexity (AC:L), no privileges (PR:N), and the victim opening the study (UI:R).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

DOM-based cross-site scripting in the OHIF Viewers dicom-pdf extension lets an attacker who controls a DICOM Encapsulated PDF instance run arbitrary script inside the viewer's own origin, exposing session storage, authentication tokens and same-origin PACS requests. The viewer reads the attacker-supplied MIMETypeOfEncapsulatedDocument (0042,0012) tag without validation and uses it as the Blob media type for the attacker-controlled document bytes, which are then embedded in an object element; a blob labelled text/html is parsed as HTML despite the application/pdf hint. Affected builds range from 3.5.0-beta.0 up to source tags 3.12.15, 3.13.7 and 3.14.0-beta.19 (npm @ohif/extension-dicom-pdf 3.12.18, 3.13.10, 3.14.0-beta.36), and exploitation requires the victim to open a malicious study - delivered as a local .dcm, via a shared PACS, or through a DICOMweb source - so no public exploit has been identified at time of analysis, though the vendor advisory and fix commits document the mechanism in full.

RemediationAI

Upgrade to a patched release: npm consumers of @ohif/extension-dicom-pdf should move to 3.12.18, 3.13.10 or 3.14.0-beta.36, while source builds are fixed from tags 3.12.15, 3.13.7 and 3.14.0-beta.19 respectively (fix at https://github.com/OHIF/Viewers/pull/6228, advisory at https://github.com/OHIF/Viewers/security/advisories/GHSA-xwgp-w3pj-q5h3). Because versions 3.5 through 3.11 will not receive a fix, installations on those branches must upgrade to a patched 3.12, 3.13 or 3.14 release. The fix resolves the declared MIME type against a displayable-type allowlist, re-wraps the payload in a Blob of the canonical type, verifies the payload matches the type's magic-number signature, and renders any HTML document through a fully restricted sandboxed iframe instead of an unsandboxable object element; no separate workaround is documented beyond patching, other than not exposing the dicom-pdf extension or the Encapsulated PDF SOP class to untrusted DICOM sources.

Affected VersionsENISA

Viewers 3.13.0-beta.0, < 3.13.7
Viewers 3.5.0-beta.0, < 3.12.15
Viewers 3.14.0-beta.0, < 3.14.0-beta.19

Affected Packages

npm @ohif/extension-dicom-pdf fix: 3.12.18, 3.13.10, 3.14.0-beta.36
euvd viewers fix: 3.12.15, 3.13.7, 3.14.0-beta.19

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

DICOM Encapsulated Documents (SOP Class 1.2.840.10008.5.1.4.1.1.104.1) carry a declared MIME type in tag (0042,0012) alongside the raw payload in (0042,0011). OHIF's dicom-pdf extension passed that declared type straight through as the Blob type when constructing an object URL, in three paths: the local DicomLocalDataSource directURL handler, DICOMweb InlineBinary decoding via b64toBlob, and DICOMweb bulk data retrieval. A blob: URL persists the MIME type set at construction, and the browser selects the handler from that stored Content-Type; the <object type="application/pdf"> attribute in OHIFCornerstonePdfViewport.tsx is only a pre-load hint, so a blob built as text/html is rendered as an HTML document. Because blob: URLs inherit the creating page's origin, any script in that document executes in the OHIF origin. This is a classic interpretation conflict (CWE-436) and dangerous-file-type acceptance (CWE-434) surfacing as CWE-79 DOM XSS: user-controlled data reaches a client-side sink without validation. The upstream fix (PR #6228) adds a displayable-type allowlist that normalises and canonicalises the declared MIME type, re-wraps the payload in a Blob of the canonical type so the instance cannot steer browser parsing, checks the payload against the type's magic-number signature, and renders HTML through a fully restricted sandboxed iframe rather than an unsandboxable object element.

Know when Viewers gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L
vuln.today AI 8.8 HIGH

Attacker-controlled DICOM is network-delivered with no privileges (AV:N/PR:N) but the victim must open the study (UI:R); the blob inherits the OHIF origin to reach other apps and PACS, so S:C with C:H for stolen tokens.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:L/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Nov 06, 2026 - 18:02 EUVD
CVE Published
Nov 06, 2026 - 17:29 cve.org
HIGH 8.8

DescriptionCVE.org

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.

Technical POC Analysis

CWE-79 (DOM-based XSS).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

OHIF Viewers, a widely used medical imaging platform, contains a high-severity DOM-based cross-site scripting vulnerability (CVE-2026-118670, CVSS 8.8) that allows an attacker controlling a DICOM Encapsulated PDF to execute arbitrary scripts within the viewer's origin. This exposes critical clinical and authentication data-including session tokens and PACS requests-potentially leading to unauthorized access to patient records and disruption of radiology workflows. Healthcare delivery organizations using affected OHIF versions must prioritize remediation to protect patient privacy and maintain clinical operations.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Low
open-source DICOM viewer, healthcare-imaging-specific, not broad enterprise footprint
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy