Viewers
Monthly
DOM-based cross-site scripting in the OHIF Viewers dicom-pdf extension lets an attacker who controls a DICOM Encapsulated PDF instance run arbitrary script inside the viewer's own origin, exposing session storage, authentication tokens and same-origin PACS requests. The viewer reads the attacker-supplied MIMETypeOfEncapsulatedDocument (0042,0012) tag without validation and uses it as the Blob media type for the attacker-controlled document bytes, which are then embedded in an object element; a blob labelled text/html is parsed as HTML despite the application/pdf hint. Affected builds range from 3.5.0-beta.0 up to source tags 3.12.15, 3.13.7 and 3.14.0-beta.19 (npm @ohif/extension-dicom-pdf 3.12.18, 3.13.10, 3.14.0-beta.36), and exploitation requires the victim to open a malicious study - delivered as a local .dcm, via a shared PACS, or through a DICOMweb source - so no public exploit has been identified at time of analysis, though the vendor advisory and fix commits document the mechanism in full.
DOM-based cross-site scripting in the OHIF Viewers dicom-pdf extension lets an attacker who controls a DICOM Encapsulated PDF instance run arbitrary script inside the viewer's own origin, exposing session storage, authentication tokens and same-origin PACS requests. The viewer reads the attacker-supplied MIMETypeOfEncapsulatedDocument (0042,0012) tag without validation and uses it as the Blob media type for the attacker-controlled document bytes, which are then embedded in an object element; a blob labelled text/html is parsed as HTML despite the application/pdf hint. Affected builds range from 3.5.0-beta.0 up to source tags 3.12.15, 3.13.7 and 3.14.0-beta.19 (npm @ohif/extension-dicom-pdf 3.12.18, 3.13.10, 3.14.0-beta.36), and exploitation requires the victim to open a malicious study - delivered as a local .dcm, via a shared PACS, or through a DICOMweb source - so no public exploit has been identified at time of analysis, though the vendor advisory and fix commits document the mechanism in full.