CVE-2026-40507: OpenEMR before 8.3.0 contains a reflected cross-site scripting vulnerability in the patient portal template import handler
Affects openemrSource GCVE Database
Not known to be exploited · CVSS 5.1 Medium : upgrade to 8.3.0 when convenient.
Data as of 16 Nov 2026, 20:25 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 27% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.3.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/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
Weaponized: 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 16 Nov 2026.
What to do
Upgrade openemr/openemr to 8.3.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubopenemr/openemrpkg:github/openemr/openemrOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
In the meantime, avoid clicking suspicious links and restrict Forms Administration permissions to trusted users only.
Description
OpenEMR versions before 8.3.0 contain a reflected cross-site scripting (XSS) vulnerability in the patient portal template import handler. The vulnerability arises because the templateHtml GET parameter is reflected in the page response without proper sanitization. An attacker can craft a malicious URL that executes arbitrary JavaScript in the browser of any authenticated user with Forms Administration permissions who clicks the link, potentially enabling session hijacking.
References
- github.com/openemr/openemr/security/advisories/GHSA-rmmr-8498-463g (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-40507 (opens in a new tab)
- github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e (opens in a new tab)
- github.com/openemr/openemr/releases/tag/v8_3_0 (opens in a new tab)
- vulncheck.com/advisories/openemr-reflected-xss-via-templatehtml-parameter-in-patient-portal (opens in a new tab)