{"id":"CVE-2026-40508","aliases":["CVE-2026-40508"],"related":[],"kind":"vulnerability","state":"published","title":"OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"OpenEMR antes de 8.3.0 contiene una vulnerabilidad de cross-site scripting almacenado en el gestor de importación de plantillas del portal del paciente que permite a atacantes autenticados con permisos de Administración de Formularios cargar archivos de plantilla que contienen HTML o JavaScript arbitrario. Los atacantes pueden inyectar scripts maliciosos a través de la funcionalidad de carga de plantillas, los cuales se almacenan sin sanitización y se ejecutan en el navegador de cualquier otro usuario de Administración de Formularios que vea la plantilla en el editor HTML.","source":"nvd"}],"published":"2026-08-19T14:51:01.748Z","modified":"2026-10-27T13:10:00.360Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"8.3.0","status":"affected"}],"vendor":"openemr","product":"openemr","repo":"https://github.com/openemr/openemr","source":"cvelist"}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openemr/openemr/releases/tag/v8_3_0","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/openemr-stored-xss-via-patient-portal-template-import-handler","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Alex Williams from Pellera Technologies","VulnCheck"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-19T15:19:49.413Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40508","url":"https://www.cve.org/CVERecord?id=CVE-2026-40508","licence":"CVE Terms of Use","modified":"2026-10-01T15:19:58.481Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40508","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40508","licence":"Public domain","modified":"2026-10-27T13:10:00.360Z"}],"updatedAt":"2026-11-25T22:59:33.953Z","epss":{"score":0.0021,"percentile":0.11816,"date":"2026-12-02T12:00:21.000Z"}}