CVE-2026-118670
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.
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-11-06 |
Timeline
- 2026-11-06Published by the CNA17:29 UTC
- 2026-11-06CISA SSVC decision recordedsame day
- 2026-11-10GitHub advisory published (GHSA-xwgp-w3pj-q5h3)4 days after publication
Exploit and advisory records
GitHub advisory GHSA-xwgp-w3pj-q5h3, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @ohif/extension-dicom-pdf | from 3.13.0-beta.0 before 3.13.10 | 3.13.10 |
| npm @ohif/extension-dicom-pdf | from 3.14.0-beta.0 before 3.14.0-beta.36 | 3.14.0-beta.36 |
| npm @ohif/extension-dicom-pdf | from 3.5.0-beta.0 before 3.12.18 | 3.12.18 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| ohif viewers |
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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-118670'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-118670'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-118670'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-118670'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).