Skip to content
Heist/ feed
Back to feed
Medium

OpenEMR 8.2.0 Stored XSS via import_template.php Template Management

Type: advisorySources: OSV

OpenEMR through 8.2.0 contains a stored cross-site scripting vulnerability in the patient portal template system that allows authenticated administrators to inject arbitrary HTML and JavaScript by storing malicious payloads through the template save mode, which only filters literal PHP open tags. Attackers can exploit the lack of output encoding at the template retrieval endpoint combined with missing HttpOnly cookie attributes to exfiltrate session tokens via document.cookie access, enabling full session hijacking of any admin, clinician, or portal patient who views a poisoned template.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-67612
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 22:25 UTC · Revision 1

Source evidence

OpenEMR 8.2.0 Stored XSS via import_template.php Template Management

core-osv · Original source

Published 3 Aug 2026, 16:06 UTC

OpenEMR through 8.2.0 contains a stored cross-site scripting vulnerability in the patient portal template system that allows authenticated administrators to inject arbitrary HTML and JavaScript by storing malicious payloads through the template save mode, which only filters literal PHP open tags. Attackers can exploit the lack of output encoding at the template retrieval endpoint combined with missing HttpOnly cookie attributes to exfiltrate session tokens via document.cookie access, enabling full session hijacking of any admin, clinician, or portal patient who views a poisoned template.

osv:CVE-2026-67612
Complete source record
{
  "id": "4b908b8096274a52bd80c7dd741f9b5a070cfa1ef65d00471bf66e5b482bc3a5",
  "url": "https://osv.dev/vulnerability/CVE-2026-67612",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "OpenEMR 8.2.0 Stored XSS via import_template.php Template Management",
    "summary": "OpenEMR through 8.2.0 contains a stored cross-site scripting vulnerability in the patient portal template system that allows authenticated administrators to inject arbitrary HTML and JavaScript by storing malicious payloads through the template save mode, which only filters literal PHP open tags. Attackers can exploit the lack of output encoding at the template retrieval endpoint combined with missing HttpOnly cookie attributes to exfiltrate session tokens via document.cookie access, enabling full session hijacking of any admin, clinician, or portal patient who views a poisoned template.",
    "evidence": "osv:CVE-2026-67612",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-67612",
      "aliases": [
        "CVE-2026-67612"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openemr/openemr",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "6125a2fd8089c8bcc3848071c1293c60e27a7585"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "8.2.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v8_2_0",
            "v3_0_1",
            "v3_0_0",
            "v2_9_0",
            "v2_8_3",
            "v2_8_2",
            "v2_8_1",
            "v2_8_0",
            "v2_7_3-rc1",
            "v2_7_2",
            "v2_7_2-rc2",
            "v2_7_2-rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-67612.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.996495469Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67612.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-67612",
        "https://www.vulncheck.com/advisories/openemr-stored-xss-via-import-template-php-template-management",
        "https://github.com/openemr/openemr",
        "https://jivasecurity.com/writeups/openemr-portal-template-stored-xss"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67612.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-67612",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507599,
  "published_at": "2026-08-03T16:06:15.872+00:00"
}