nday
CVE-2026-118670 GHSA-xwgp-w3pj-q5h3

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

OHIF / Viewers

Disclosed . Patched: fixed in @ohif/extension-dicom-pdf 3.12.18, @ohif/extension-dicom-pdf 3.13.10 and 1 more. None of the four PoC sources lists it. Not in CISA KEV.

tags weakness typeXSS accessnetworkno authentication required ecosystemnpm
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

XSS
CWE-79, stated by the CNA GitHub_M, NVD, republishing [email protected], and GitHub advisory GHSA-xwgp-w3pj-q5h3
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L (CVSS 3.1) from the CNA GitHub_M
no authentication required
PR:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L (CVSS 3.1) from the CNA GitHub_M
npm
GHSA-xwgp-w3pj-q5h3: npm packages @ohif/extension-dicom-pdf
stage
PAT
disclosed
cvss
8.8 HIGH v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
11-06T17:29Z
PATpatch
@ohif/extension-dicom-pdf 3.12.18 +2 more
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:N
None: no account or authorization needed
User interaction UI:R
Required: a user must do something, such as open a file or click a link

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L

CVSS 3.1 vector from the CVE record, scored by the CNA GitHub_M.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 8.8, high.

src cvelist · nday , bulk import · raw
{
  "id": 6000,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-118670",
  "occurred_at": "2026-11-06T17:29:15.266Z",
  "observed_at": "2026-11-12T14:10:31.286634Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L",
      "version": "3.1",
      "base_score": 8.8,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2026-11-06T17:47:36.194512Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-06T17:29:15.266Z",
    "assigner_short_name": "GitHub_M"
  }
}
time unknownsource gave no time
+PATpatch released

The advisory gives fixed versions @ohif/extension-dicom-pdf 3.12.18, @ohif/extension-dicom-pdf 3.13.10, and @ohif/extension-dicom-pdf 3.14.0-beta.36. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-xwgp-w3pj-q5h3 · nday , bulk import · raw
{
  "id": 19075,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-xwgp-w3pj-q5h3",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:03:36.174798Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-xwgp-w3pj-q5h3",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 8.8,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Improper Neutralization of Input During Web Page Generation",
        "cwe_id": "CWE-79"
      }
    ],
    "ghsa_id": "GHSA-xwgp-w3pj-q5h3",
    "packages": [
      {
        "name": "@ohif/extension-dicom-pdf",
        "ecosystem": "npm",
        "first_patched_version": "3.12.18",
        "vulnerable_version_range": ">= 3.5.0-beta.0, < 3.12.18"
      },
      {
        "name": "@ohif/extension-dicom-pdf",
        "ecosystem": "npm",
        "first_patched_version": "3.13.10",
        "vulnerable_version_range": ">= 3.13.0-beta.0, < 3.13.10"
      },
      {
        "name": "@ohif/extension-dicom-pdf",
        "ecosystem": "npm",
        "first_patched_version": "3.14.0-beta.36",
        "vulnerable_version_range": ">= 3.14.0-beta.0, < 3.14.0-beta.36"
      }
    ],
    "severity": "high",
    "references": [
      "https://github.com/OHIF/Viewers/security/advisories/GHSA-xwgp-w3pj-q5h3",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-118670",
      "https://github.com/OHIF/Viewers/pull/6228",
      "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/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/advisories/GHSA-xwgp-w3pj-q5h3"
    ],
    "fix_commit_urls": [
      "https://github.com/OHIF/Viewers/pull/6228",
      "https://github.com/OHIF/Viewers/commit/db546701bd5f2be9031c835f1de5c40aacd3dc62",
      "https://github.com/OHIF/Viewers/commit/ef0811c66cdb04ba07ffaba145cf66ce01486899",
      "https://github.com/OHIF/Viewers/commit/f0dba789a313f40fe7e8a8cbec322a8d8a491d76"
    ],
    "github_reviewed_at": "2026-11-10T15:57:51Z",
    "advisory_updated_at": "2026-11-10T15:57:54Z",
    "source_code_location": "https://github.com/OHIF/Viewers",
    "advisory_published_at": "2026-11-10T15:57:51Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.