CVE-2026-40507
published medium CVSS 4.0 · 5.1OpenEMR < 8.3.0 Reflected XSS via templateHtml Parameter in Patient Portal
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 reflected cross-site scripting vulnerability in the patient portal template import handler. The templateHtml GET parameter is reflected into the page response without sanitization. An attacker can craft a URL that executes arbitrary JavaScript in the browser of any authenticated user with Forms Administration permissions who visits the link, enabling session hijacking.
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:N/UI:A/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 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/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-rmmr-8498-463g) https://github.com/openemr/openemr/security/advisories/GHSA-rmmr-8498-463g
- https://www.vulncheck.com/advisories/openemr-reflected-xss-via-templatehtml-parameter-in-patient-portal
Provider assertions
2VulnCheck · cna
OpenEMR < 8.3.0 Reflected XSS via templateHtml Parameter in Patient Portal
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f803e0d9a7f8bbfc3c88b5e45f9d30086e4a0d5dcb8b6afd7072f6611cd79084
- Ingested
- 01 Oct 2026, 18:31:22 UTC
- Source record
- Official CVE record