OpenEMR < 8.3.0 Reflected XSS via templateHtml Parameter in Patient Portal
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.
CVE-2026-40507
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-40507
openemr
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://github.com/openemr/openemr",
"vendor": "openemr",
"product": "openemr",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "8.3.0",
"versionType": "semver"
}
],
"packageURL": "pkg:github/openemr/openemr",
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-40507
Source reference:
/cveMetadata/cveId
Publisher severity
medium
Source reference: /containers/cna/metrics
- Event
- #5422 · Revision 1
- Added to Heist Feed
- Publisher date