Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff89
- https://github.com/openemr/openemr/releases/tag/v8_3_0
- https://github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44
- https://www.vulncheck.com/advisories/openemr-stored-xss-via-patient-portal-templ
- https://github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44
FAQ
What is CVE-2026-40508?
CVE-2026-40508 is a vulnerability with a CVSS score of 5.4 (MEDIUM). 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 upl...
How severe is CVE-2026-40508?
CVE-2026-40508 has been rated MEDIUM with a CVSS base score of 5.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-40508?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.