CVE-2026-40508 OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler
MediumCVSS 5.1
EPSS 0.30%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| openemr | < 8.3.0 | 8.3.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openemr | < 8.3.0 | 8.3.0 |
References
- GitHub Security Advisory (GHSA-5293-8q47-cf44) exploit vendor-advisory
- OpenEMR v8_3_0 Release Notes release-notes
- Patch Commit patch
- www.vulncheck.com third-party-advisory
- ENISA EUVD EUVD-2026-62508 third-party-advisory