A critical flaw in the OHIF Viewer, a widely used open-source medical imaging framework, can expose authenticated clinician tokens to attackers via nothing more than a cleverly crafted link. The Industrial Control Systems (ICS) wing of the U.S. Cybersecurity and Infrastructure Security Agency (CISA) issued a formal medical advisory on June 25, 2026, assigning the vulnerability CVE-2026-12473 and urging immediate patching. Left unaddressed, the bug provides a direct path for unauthorized access to picture archiving and communication systems (PACS) and other DICOMweb-enabled clinical archives, placing sensitive patient images and associated health records at risk.
The OHIF Viewer stands as the cornerstone of countless radiology, oncology, and clinical trial workflows across the globe. It renders DICOM images directly in the browser, pulling studies from remote servers via the DICOMweb RESTful API. The very authentication mechanism designed to protect those studies—OpenID Connect (OIDC)—becomes the attack vector in this case. By appending a malicious fragment or query parameter to a DICOMweb endpoint URL, an adversary can force the viewer to transmit the user’s bearer token to an external, attacker-controlled domain. The token then grants the attacker the same level of access as the compromised clinician, up to and including the ability to exfiltrate entire imaging studies.
The OpenID Connect Token Lifecycle Under Attack
OHIF Viewer supports OIDC out of the box, enabling single sign-on integration with hospital identity providers like Azure AD, Okta, or Keycloak. When a clinician logs in, the viewer stores a JSON Web Token (JWT) or opaque access token in the browser’s memory and attaches it as an Authorization header to every DICOMweb request. Because the viewer is a single-page application, the token remains alive until the user explicitly logs out or the token expires.
CVE-2026-12473 undermines this chain silently. The OHIF rendering engine parses the URL hash and search parameters to construct internal routing and to set certain viewer state. Prior to version 3.12.2, a missing validation step allowed an attacker to inject an arbitrary redirect URL directly into the viewer’s iframed or QIDO (Query based on ID for DICOM Objects) request context. When the viewer subsequently makes an outbound HTTP request to that injected URL—thinking it is a legitimate DICOMweb resource—the browser attaches the Authorization header containing the valid OIDC token. The external server simply collects the header and logs the token.
Because modern browsers apply the Same-Origin Policy strictly, one might wonder how a cross-origin request could leak headers. The Viewers codebase, however, uses the mode: 'cors' attribute with credentials: 'include' for certain custom data source plugins. An attacker can harness this plugin interface by crafting a link that points to a rogue WADO-RS or STOW-RS endpoint. The viewer, misconfigured to trust user-supplied parameters, makes a preflight CORS request or a simple POST that exposes the token.
Affected Versions and the Patch
CISA’s advisory states that all versions of OHIF Viewer up to and including 3.12.0 are vulnerable. The project maintainers released version 3.12.1 as a quick fix but identified a bypass that required a more robust solution. The definitive patch landed in version 3.12.2, published on June 26, 2026, just one day after the advisory. Institutions running any earlier 3.x release are strongly advised to upgrade immediately; the 2.x line received a backport as release 2.15.1-june2026.
Administrators can verify their exposure by checking the /version endpoint exposed by the OHIF deployment or by examining the package.json in their local deployment. If the version string is 3.12.0 or lower, the system is susceptible. The patch introduces a strict allowlist of permissible redirect targets and strips any fragment containing external protocol handlers before processing DICOMweb queries.
Real-World Impact: Not Just a Lab Curiosity
Unlike many CVEs that require local access or complex chaining, CVE-2026-12473 can be exploited with a single phishing email. An attacker sends a link to a clinician or researcher that appears to open a legitimate study—say, a suspicious chest CT—in the institution’s OHIF Viewer. The link looks authentic because it uses the real viewer URL but appends a [email protected] parameter or a fragment that the viewer dutifully follows. The moment the victim clicks, the token is sent to evil.com, and the attacker can immediately replay it to fetch the patient’s entire imaging history.
In many hospital configurations, the OIDC token has a lifespan of eight to twelve hours and may not be tied to a specific IP address or device fingerprint. That gives the attacker a large window to enumerate studies, exfiltrate DICOM objects, or even inject malicious DICOM files via the STOW-RS interface if write access is token scoped. The confidentiality breach alone triggers HIPAA notification requirements in the United States and GDPR implications in Europe, as medical images are explicitly classified as protected health information.
DICOMweb endpoints often sit behind a reverse proxy that performs TLS termination, but the token leak occurs over TLS—it is the destination that is malicious, not the transport. Network detection mechanisms that rely on deep packet inspection will see only an encrypted outbound connection to a seemingly random domain, making the attack extremely difficult to identify in real time.
CISA’s Advisory and Broader ICS-Medical Alert
The advisory, officially tagged ICSMA-26-176-01, falls under CISA’s expanding mandate to cover medical devices and healthcare software following the 2025 consolidation of ICS and healthcare cybersecurity oversight. The document gives the vulnerability a CVSS v4.0 base score of 9.1 (Critical), with a vector string of CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N. The low attack complexity and requirement for only user interaction (clicking a link) drive the severity.
CISA recommends that all healthcare delivery organizations using OHIF Viewer perform the following steps within 14 days:
1. Upgrade to OHIF Viewer 3.12.2 or the backported 2.15.1 release.
2. Review reverse proxy logs for outbound connections from the Viewer host to unknown domains, focusing on requests containing Bearer tokens in the response headers.
3. Rotate all OIDC client secrets and, where possible, revoke and reissue any access tokens that may have been active during the exposure window.
4. Restrict the Viewer’s egress traffic to only the known DICOMweb servers and identity provider endpoints.
The advisory also names the researcher credited with the discovery—Tomasz Miklas of MedSec Research—and notes that the vulnerability was disclosed through the CISA Coordinated Vulnerability Disclosure process in April 2026.
Technical Root Cause: Insufficient URL Whitelisting
Delving into the codebase, the root cause sits in the OHIFStudyViewer.js module that handles the initial routing. The function _parseStudyParams accepted a redirectUri parameter without validating it against a registry of known DICOMweb services. When the viewer instantiated a DICOMweb client, it used that untrusted URI as the base URL. The Token Manager then blindly attached the access token to any request going to that base.
The fix in 3.12.2 introduces a configuration-driven allowlist of permitted origins. Each DICOMweb source must be explicitly declared in the datasources configuration file. The code now rejects any URL whose origin does not match one of the pre-registered hosts, logging an error and refusing to attach the token. Additionally, the fragment parsing code now sanitizes the hash by removing any @ or // sequences that could be misused to redirect.
Community and Industry Response
The open-source community around OHIF moved swiftly. The project’s GitHub repository saw a flurry of activity in the 48 hours following the advisory, with at least three major PACS vendors—Intelerad, Visage, and Sectra—issuing confirmations that their self-managed OHIF-based portals were patched or not affected. Several widely used cloud-based medical imaging platforms, such as Flywheel and Health Lake Imaging, pushed automatic updates overnight after testing the 3.12.2 release.
Security researchers on the DICOMWeb Discord server quickly published Snort and Suricata rules to detect the token exfiltration pattern. A simple rule looks for HTTP GET requests with a Bearer token in the Authorization header directed to hosts outside the local domain, combined with user-agent strings containing “OHIF-Viewer.” While not foolproof, these signatures give SOC teams a starting point for hunting.
One lingering concern discussed in clinical engineering circles is the prevalence of older, forked versions of OHIF Viewer embedded inside FDA-cleared medical device software. Several mobile X-ray and ultrasound modalities ship with a customized OHIF 2.x viewer that may not be easily upgradable. For those devices, CISA advises implementing strict network segmentation and disabling the OIDC flow entirely if possible, falling back to an IP-whitelisted API key model.
Steps for IT Teams and Security Practitioners
Patching the core viewer is only the first step. Institutions running OHIF inside an iframe within an electronic health record (EHR) system must also check that the EHR’s integration is not passing a full redirect path through its own link generator. A defense-in-depth approach should include:
- Content Security Policy (CSP): Deploying a strict CSP that restricts
connect-srcto only the approved DICOMweb endpoints and the identity provider. This would block the browser from even initiating a request to an attacker’s domain. - OIDC Token Binding: Where supported, enabling token binding or mTLS so that the token cannot be replayed from a different TLS channel.
- Network Traffic Analysis: Ingesting proxy logs into a SIEM and creating alerts for any Bearer token seen in an outbound request where the destination is not a known DICOMweb server.
- Phishing Awareness: Updating training materials to warn clinical staff that a link opening a familiar viewer could still be malicious, and to report any instance where the viewer requests an unexpected login.
The OIDC configuration of the OHIF Viewer itself can be hardened by reducing token lifetimes, enforcing audience restrictions, and enabling refresh token rotation. CISA’s advisory points to the auth0 and Keycloak documentation for best practices on single-page application security, emphasizing the use of Authorization Code Flow with PKCE rather than the implicit flow.
The Bigger Picture: Medical Imaging as a Prime Target
CVE-2026-12473 highlights a systematic fragility in the DICOMweb ecosystem. As healthcare providers rush to embrace zero-footprint, browser-based imaging to cut costs and improve collaboration, the attack surface expands. DICOMweb endpoints, once buried inside the hospital’s internal network, are now reachable through cloud gateways, VPN-less portals, and third-party image exchange services. The OHIF Viewer, as the de facto reference implementation of a DICOMweb client, becomes a high-value target.
This is not the first time a medical imaging viewer has fallen victim to URL-based token leaks. In 2024, a similar issue in the open-source Orthanc server allowed rebinding attacks through malicious WADO-RS URLs. The difference here is the ubiquity of OHIF—it is baked into commercial products, research platforms, and even public health registries. A zero-click or one-click attack that can pivot from a single clinician’s credentials to thousands of patient records represents a nightmare scenario for CISOs.
Conclusion: Act Now, Automate Later
Healthcare organizations cannot afford to treat CVE-2026-12473 as a routine IT update. The simplicity of the exploit, the availability of proof-of-concept code (which CISA notes is likely to surface imminently), and the critical nature of the data at stake demand emergency-patching procedures. Get to version 3.12.2, review your egress filters, rotate your tokens, and educate your users. The window between advisory and active exploitation in healthcare is often measured in single-digit days; with a vulnerability this straightforward, that window may already be closed.
For the broader Windows and enterprise security community, this advisory serves as a reminder that OIDC token handling in single-page applications demands rigorous, paranoid validation of every URL parameter. The web security tenet “never trust user input” extended here to fragment identifiers and query strings, and OHIF paid the price. The fix is small, but the consequences of ignoring it are monumental.