{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "8.3.0"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "ebb62eb3036a726314ab3e1c3e9263a41608b17b"
            },
            {
              "fixed": "f760adc7bddaf9d118e1a0d40590e686783ed21b"
            }
          ],
          "repo": "https://github.com/openemr/openemr",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-wffp-pj5h-xqwp"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-352"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40509.json"
  },
  "details": "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.",
  "id": "CVE-2026-40509",
  "modified": "2026-09-11T03:30:54.570709142Z",
  "published": "2026-08-19T14:53:21.612Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40509.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/openemr/openemr/releases/tag/v8_3_0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/openemr/openemr/security/advisories/GHSA-wffp-pj5h-xqwp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40509"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/openemr-csrf-via-dicom-viewer-web-path-parameter"
    },
    {
      "type": "FIX",
      "url": "https://github.com/openemr/openemr/commit/f760adc7bddaf9d118e1a0d40590e686783ed21b"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/openemr/openemr"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "OpenEMR \u003c 8.3.0 CSRF via DICOM Viewer web_path Parameter"
}