CVE-2026-40508
published medium CVSS 4.0 · 5.1OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| openemr | — | openemr0 to < 8.3.0 · Other versions: affected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.4 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| openemr | openemr | 0 to < 8.3.0 (affected · semver)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
4- Patch Commit https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e
- OpenEMR v8_3_0 Release Notes https://github.com/openemr/openemr/releases/tag/v8_3_0
- GitHub Security Advisory (GHSA-5293-8q47-cf44) https://github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44
- https://www.vulncheck.com/advisories/openemr-stored-xss-via-patient-portal-template-import-handler
Provider assertions
2VulnCheck · cna
OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c4144cc8378fee3ec2f9c2be2591fde0a2374acb11e738c79157291a661a1e82
- Ingested
- 01 Oct 2026, 18:31:22 UTC
- Source record
- Official CVE record