Original 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.
Affected software
- OpenEMR < 8.3.0 Fixed in: 8.3.0 repository or package match
Details
- Published
- 2026-08-19
- Last modified
- 2026-10-02
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N- CWE
- CWE-79
- EPSS (30-day exploit probability)
- 0.30% (percentile 23)
References
- cve.org/CVE-2026-40508
- nvd.nist.gov/vuln/detail/CVE-2026-40508
- github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44
- github.com/openemr/openemr/releases/tag/v8_3_0
- github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e
- www.vulncheck.com/advisories/openemr-stored-xss-via-patient-portal-template-import-handler
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.