OpenEMR before 8.3.0 contains a cross-site request forgery vulnerability in the DICOM viewer. (CVE-2026-40509)
OpenEMR versions prior to 8.3.0 contain a cross-site request forgery (CSRF) vulnerability in the DICOM viewer component. This vulnerability arises because the web_path GET parameter is embedded directly as a URL without proper validation or sanitization. An attacker can exploit this by crafting a malicious URL that causes an authenticated user with Patients - Documents permissions to perform unintended authenticated requests, such as forced logout or other state-changing actions.
AI Analysis
Technical Summary
The vulnerability identified as CVE-2026-40509 affects OpenEMR versions before 8.3.0. It is a cross-site request forgery (CWE-352) in the DICOM viewer page, where the web_path GET parameter is embedded unsanitized as a URL without validation against expected path formats. This flaw allows an attacker to craft a URL that, when visited by an authenticated user with Patients - Documents permissions, triggers authenticated requests to arbitrary OpenEMR endpoints. The impact includes forced logout and other state-changing actions performed without the user's consent.
Potential Impact
The vulnerability enables attackers to induce authenticated users to perform unintended actions within OpenEMR, potentially disrupting user sessions (e.g., forced logout) or modifying application state. There is no direct confidentiality or availability impact reported. The CVSS 3.1 base score is 4.3 (medium severity), reflecting limited impact primarily on integrity via forced actions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should exercise caution when clicking on untrusted links while authenticated in OpenEMR. Implementing CSRF protections or input validation on the web_path parameter may mitigate the risk. Monitor vendor channels for updates and apply official patches once released.
OpenEMR before 8.3.0 contains a cross-site request forgery vulnerability in the DICOM viewer. (CVE-2026-40509)
Description
OpenEMR versions prior to 8.3.0 contain a cross-site request forgery (CSRF) vulnerability in the DICOM viewer component. This vulnerability arises because the web_path GET parameter is embedded directly as a URL without proper validation or sanitization. An attacker can exploit this by crafting a malicious URL that causes an authenticated user with Patients - Documents permissions to perform unintended authenticated requests, such as forced logout or other state-changing actions.
CVSS v3.1
Score 4.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability identified as CVE-2026-40509 affects OpenEMR versions before 8.3.0. It is a cross-site request forgery (CWE-352) in the DICOM viewer page, where the web_path GET parameter is embedded unsanitized as a URL without validation against expected path formats. This flaw allows an attacker to craft a URL that, when visited by an authenticated user with Patients - Documents permissions, triggers authenticated requests to arbitrary OpenEMR endpoints. The impact includes forced logout and other state-changing actions performed without the user's consent.
Potential Impact
The vulnerability enables attackers to induce authenticated users to perform unintended actions within OpenEMR, potentially disrupting user sessions (e.g., forced logout) or modifying application state. There is no direct confidentiality or availability impact reported. The CVSS 3.1 base score is 4.3 (medium severity), reflecting limited impact primarily on integrity via forced actions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should exercise caution when clicking on untrusted links while authenticated in OpenEMR. Implementing CSRF protections or input validation on the web_path parameter may mitigate the risk. Monitor vendor channels for updates and apply official patches once released.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c2ph-gr8x-j747
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-40509"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a85ee14acd9273b4969a278
Added to database: 08/19/2026, 17:55:32 UTC
Last enriched: 08/19/2026, 18:10:48 UTC
Last updated: 08/19/2026, 18:52:09 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.