---
id: "CVE-2026-126486"
page: "https://infrastack.ai/live/CVE-2026-126486"
kind: "vulnerability"
aliases: ["CVE-2026-126486"]
title: "OpenEMR: missing access checks let staff delete and read portal templates"
severity: "high"
cvss: 7.6
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "php", "runtime", "self-hosted"]
not_affected_if: ["portal-unused", "version-8.5.0-or-later"]
published_at: "2026-11-13T10:17:58+00:00"
first_seen_at: "2026-11-13T10:47:26+00:00"
updated_at: "2026-11-13T10:52:36+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126486", "first_seen_at": "2026-11-13T10:47:26+00:00"}]
exploit_sources: []
---

# OpenEMR: missing access checks let staff delete and read portal templates

Link for people: https://infrastack.ai/live/CVE-2026-126486 (this .md is for agents)

OpenEMR, an electronic health records system, fails to check permissions and CSRF tokens in several portal document template modes of portal/import_template.php. Any logged-in staff user can delete template assignments, push templates to patients, change categories, and read template bodies.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the OpenEMR version with the installed `version.php` or the admin footer; versions below `8.5.0` are affected.
- Confirm whether the portal feature is enabled for patients in the OpenEMR admin settings.

## Fix

- OpenEMR: upgrade to `8.5.0` or later (per the advisory).

## Timeline

- 2026-11-13T10:47:26+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126486

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-phvv-q7m7-8mc2
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-missing-authorization-via-portal-import-template-php

## From the sources

OpenEMR before 8.5.0 contains a missing authorization vulnerability in portal/import_template.php, where several portal document template modes lack admin/forms ACL and CSRF checks. Any authenticated staff user can send mode=save_profiles to delete all template profile assignments, use other unguarded modes to push templates to patients or change categories, and read template bodies via mode=get or getPdf.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
