OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler
Historical advisory recorded 23 Oct 2026 15:48:27 UTC. Read the latest advisory.
cve-program · CVE-2026-40508
PublishedOpenEMR 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-40508 · CVE overview and exploitation status
cve-program · CVE-2026-40508
- https://github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44
- https://github.com/openemr/openemr/releases/tag/v8_3_0
- https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e
- https://www.vulncheck.com/advisories/openemr-stored-xss-via-patient-portal-template-import-handler
This historical advisory does not include today's related changes. Open the latest advisory to find current connections.