CVE-2026-40508

published 19 Aug 2026 · updated 1 Oct 2026

OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler

5.4MediumCVSS 5.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 8.3.0.

OpenEMR before 8.3.0 contains a stored cross-site scripting vulnerability in the patient portal template import handler that allows authenticated attackers with Forms Administration permissions to upload template files containing arbitrary HTML or JavaScript. Attackers can inject malicious scripts through the template upload functionality, which are stored without sanitization and execute in the browser of any other Forms Administration user who views the template in the HTML editor.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
openemr<8.3.08.3.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40508 severity on Zeptric[![CVE-2026-40508](https://zeptric.io/badge/cve/CVE-2026-40508.svg)](https://zeptric.io/cve/CVE-2026-40508)