---
id: CVE-2026-40509
title: >-
  OpenEMR before 8.3.0 contains a cross-site request forgery vulnerability in
  the DICOM viewer
summary: >-
  OpenEMR before 8.3.0 contains a cross-site request forgery vulnerability in
  the DICOM viewer. The web_path GET parameter in the DICOM viewer page is
  embedded unsanitized as a URL without validation against expected path
  formats. An attac…
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'
cwe:
  - CWE-352
published: '2026-08-19'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:40:01.933'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-40509'
references:
  - url: >-
      https://github.com/openemr/openemr/commit/f760adc7bddaf9d118e1a0d40590e686783ed21b
    label: disclosure@vulncheck.com
  - url: 'https://github.com/openemr/openemr/releases/tag/v8_3_0'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/openemr/openemr/security/advisories/GHSA-wffp-pj5h-xqwp'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/openemr-csrf-via-dicom-viewer-web-path-parameter
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.0019
epssPercentile: 0.07592
ingestedAt: '2026-09-09T21:22:45.539Z'
---

## Overview

OpenEMR before 8.3.0 contains a cross-site request forgery vulnerability in the DICOM viewer. The web_path GET parameter in the DICOM viewer page is embedded unsanitized as a URL without validation against expected path formats. An attacker can craft a URL that causes an authenticated user with Patients - Documents permissions to make authenticated requests to arbitrary OpenEMR endpoints, enabling forced logout and other state-changing actions.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
