CVE-2026-40508 PUBLISHED

OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler

Assigner: VulnCheck
Reserved: 13.04.2026 Published: 19.08.2026 Updated: 19.08.2026

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.

Metrics

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
CVSS Score: 5.1

Product Status

Vendor openemr
Product openemr
Versions Default: affected
  • affected from 0 to 8.3.0 (excl.)

Credits

  • Alex Williams from Pellera Technologies finder
  • VulnCheck finder

References

Problem Types

  • Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE