OpenEMR 8.2.0 Stored XSS via import_template.php Template Management
30Vexday Risk Score
No sign of exploitation. It has a public proof of concept.
ssvc Attendcvss 4.8
exploitation probability
—
observed exploitation
nono source reports it
1 public exploit(s)
OpenEMR through 8.2.0 contains a stored cross-site scripting vulnerability in the patient portal template system that allows authenticated administrators to inject arbitrary HTML and JavaScript by storing malicious payloads through the template save mode, which only filters literal PHP open tags. Attackers can exploit the lack of output encoding at the template retrieval endpoint combined with missing HttpOnly cookie attributes to exfiltrate session tokens via document.cookie access, enabling full session hijacking of any admin, clinician, or portal patient who views a poisoned template.
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Affected products
openemr · openemrpublic PoCs found — 1
cve_referencejivasecurity.com/writeups/openemr-portal-template-stored-xssunverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.