CSRF in Openemr
CVE-2026-40509
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.
Vulnerability class: CSRF (Cross-Site Request Forgery)
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
Affected products
Weakness classification (CWE)
References
- disclosure@vulncheck.com (patch)
- disclosure@vulncheck.com (release-notes)
- disclosure@vulncheck.com (vendor-advisory)
- disclosure@vulncheck.com (third-party-advisory)
Frequently asked questions
- What is CVE-2026-40509?
- CVE-2026-40509 is a medium-severity vulnerability in Openemr, classified under Cross-Site Request Forgery (CSRF). CVSS score: 4.3/10. Published 2026-08-19.
- How severe is CVE-2026-40509?
- Medium severity. CVSS v3 base score is 4.3 out of 10.