CVE-2026-40509

OpenEMR < 8.3.0 CSRF via DICOM Viewer web_path Parameter

Published Aug 19, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

OpenEMR before 8.3.0 contains a CSRF flaw in the DICOM viewer. The web_path GET parameter is embedded as a URL without validation, allowing an attacker to craft a link that forces an authenticated user with Patients‑Documents permissions to make arbitrary requests to OpenEMR endpoints, such as forced logout or other state‑changing actions. This flaw is identified as CWE‑352, a cross‑site request forgery weakness.

Affected Systems

All installations of OpenEMR that use a version earlier than 8.3.0 and expose the DICOM viewer functionality are affected. Users granted the Patients‑Documents role are the primary targets.

Risk and Exploitability

The CVSS score of 5.3 denotes moderate severity. The EPSS score is <1%, indicating a very low probability of exploitation, but the attack requires a victim to visit a malicious URL in a browser. The vulnerability is not listed in the CISA KEV catalog, indicating no widespread exploitation at this time. The likely attack vector is an authenticated user’s browser session that receives a crafted link from an attacker.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to OpenEMR version 8.3.0 or later to implement proper input validation for the web_path parameter.
  • Restrict DICOM viewer access to only users with the necessary Patients‑Documents role and revoke unnecessary permissions.
  • After upgrading, audit application logs for any unauthorized or unexpected authenticated requests that may have occurred before the patch.

Generated by OpenCVE AI on August 20, 2026 at 15:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Open-emr
Open-emr openemr
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description 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.
Title OpenEMR < 8.3.0 CSRF via DICOM Viewer web_path Parameter
Weaknesses CWE-352
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 1, 2026, 3:19 PM
Reserved
Apr 13, 2026, 8:29 PM
Status
Deferred
Published
Aug 19, 2026, 3:17 PM
Modified
Oct 27, 2026, 1:10 PM