CVE-2026-67612 OpenEMR 8.2.0 Stored XSS via import_template.php Template Management
Authenticated administrators can inject malicious scripts into patient portal templates, leading to session hijacking of other users via stored XSS.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-67612?
CVE-2026-67612 is a medium-severity cross-site scripting vulnerability in openemr, published on 3 Aug 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2026-67612?
How do I fix CVE-2026-67612?
No fix has been published for CVE-2026-67612 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-67612 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-67612 exists.
Sources
Also known as GHSA-rv29-9mq6-7j5q.