CVE-2026-40508: openemr · Cross-site Scripting
Affects openemrSource GCVE Database
Not known to be exploited · CVSS 5.1 Medium.
Data as of 27 Oct 2026, 14:12 UTC
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| openemr openemr | Affected
| Fixed in– |
Description
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.
References
- github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44 (opens in a new tab)
- github.com/openemr/openemr/releases/tag/v8_3_0 (opens in a new tab)
- github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e (opens in a new tab)
- vulncheck.com/advisories/openemr-stored-xss-via-patient-portal-template-import-handler (opens in a new tab)