CVE-2026-40508

medium

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.

References

https://www.vulncheck.com/advisories/openemr-stored-xss-via-patient-portal-template-import-handler

https://github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44

https://github.com/openemr/openemr/releases/tag/v8_3_0

https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-62508

Details

Source: Mitre, NVD

Published: 2026-08-19

Updated: 2026-10-27

Risk Information

CVSS v2

Base Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:N

Severity: Medium

CVSS v3

Base Score: 5.4

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Severity: Medium

CVSS v4

Base Score: 5.1

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

Severity: Medium

EPSS

EPSS: 0.00298