CVE-2026-118670OHIF Viewers: DOM-Based Cross Site Scripting (XSS) through MIME type of document
- 8.8HighCVSS base score
- 0.42%Exploitation in 30 daysEPSS · top 63% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 9 days later
· 9 days later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L |
| NVDNVD · Awaiting Analysis | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L |
- EPSS (exploitation in 30 days)
- 0.42% · top 63% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@ohif/extension-dicom-pdfGHSA-xwgp-w3pj-q5h3 (opens in a new tab)
References
References8
- https://github.com/OHIF/Viewers/security/advisories/GHSA-xwgp-w3pj-q5h3 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/OHIF/Viewers/pull/6228 (opens in a new tab)x_refsource_MISC
- https://github.com/OHIF/Viewers/commit/db546701bd5f2be9031c835f1de5c40aacd3dc62 (opens in a new tab)x_refsource_MISC
- https://github.com/OHIF/Viewers/commit/ef0811c66cdb04ba07ffaba145cf66ce01486899 (opens in a new tab)x_refsource_MISC
- https://github.com/OHIF/Viewers/commit/f0dba789a313f40fe7e8a8cbec322a8d8a491d76 (opens in a new tab)x_refsource_MISC
- https://github.com/OHIF/Viewers/releases/tag/v3.12.15 (opens in a new tab)x_refsource_MISC
- https://github.com/OHIF/Viewers/releases/tag/v3.13.7 (opens in a new tab)x_refsource_MISC
- https://github.com/OHIF/Viewers/releases/tag/v3.14.0-beta.19 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-118385 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-xwgp-w3pj-q5h3 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-118670)Record last updated .