CVE-2026-118670: OHIF Viewers: DOM-Based Cross Site Scripting (XSS) through MIME type of document
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-xwgp-w3pj-q5h3
Summary
OHIF Viewers contains a DOM-based Cross-Site Scripting (XSS) vulnerability caused by improper validation of the MIME type in DICOM Encapsulated PDF objects. Security teams managing OHIF deployments should upgrade the @ohif/extension-dicom-pdf package to the specified patched versions to prevent malicious JavaScript execution.
Who is affected
The vulnerability allows an attacker to execute arbitrary JavaScript in the context of the OHIF origin if they can convince a victim to open a specially crafted DICOM Encapsulated PDF. Successful exploitation enables unauthorized access to session tokens, local storage, and the ability to perform same-origin requests to PACS servers. This impacts any deployment where users interact with untrusted DICOM files.
Exploitability
The vulnerability is rated as High severity (CVSS 8.8) due to its potential for full account compromise, despite requiring user interaction. While the current EPSS score is low (0.004), the flaw is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade @ohif/extension-dicom-pdf to version 3.12.18, 3.13.10, or 3.14.0-beta.36.
- If building from source, ensure you are using release tags 3.12.15, 3.13.7, 3.14.0-beta.19 or later.
- Users on versions 3.5 through 3.11 should migrate to one of the supported and patched major versions, as these versions will not receive a fix.
How to check your project
- Inspect the package.json or lock files in your OHIF project to verify the version of @ohif/extension-dicom-pdf currently in use.
- Perform a dependency audit using 'npm list @ohif/extension-dicom-pdf' to identify if an affected version is present.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | @ohif/extension-dicom-pdf |
>= 3.5.0-beta.0, < 3.12.18 | 3.12.18 | npm install @ohif/[email protected] |
| npm | @ohif/extension-dicom-pdf |
>= 3.13.0-beta.0, < 3.13.10 | 3.13.10 | npm install @ohif/[email protected] |
| npm | @ohif/extension-dicom-pdf |
>= 3.14.0-beta.0, < 3.14.0-beta.36 | 3.14.0-beta.36 | npm install @ohif/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Changed |
| Confidentiality | High |
| Integrity | Low |
| Availability | Low |
FAQ
Does this vulnerability require server-side access?
No, the vulnerability can be triggered locally by opening a malicious .dcm file, or via remote DICOMweb sources and PACS uploads.
Is the MIME type validation the only factor?
Yes, the issue stems from the application trusting the MIMETypeOfEncapsulatedDocument tag and using it directly when creating a Blob object, which leads to browser-based rendering of injected HTML.
Are older versions of OHIF affected?
Versions 3.5 through 3.11 are vulnerable and will not be patched; users on these versions must upgrade to 3.12, 3.13, or 3.14.
Original advisory description
References
- WEB https://github.com/OHIF/Viewers/security/advisories/GHSA-xwgp-w3pj-q5h3
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-118670
- WEB https://github.com/OHIF/Viewers/pull/6228
- WEB https://github.com/OHIF/Viewers/commit/db546701bd5f2be9031c835f1de5c40aacd3dc62
- WEB https://github.com/OHIF/Viewers/commit/ef0811c66cdb04ba07ffaba145cf66ce01486899
- WEB https://github.com/OHIF/Viewers/commit/f0dba789a313f40fe7e8a8cbec322a8d8a491d76
- PACKAGE https://github.com/OHIF/Viewers
- WEB https://github.com/OHIF/Viewers/releases/tag/v3.12.15
- WEB https://github.com/OHIF/Viewers/releases/tag/v3.13.7
- WEB https://github.com/OHIF/Viewers/releases/tag/v3.14.0-beta.19
Source records: GHSA-xwgp-w3pj-q5h3 (OSV.dev) · EPSS by FIRST, 2026-11-26.