Home

Description

OpenEMR 5.0.2.1 contains a cross-site scripting vulnerability that allows authenticated attackers to inject malicious JavaScript through user profile parameters. Attackers can exploit the vulnerability by crafting a malicious payload to download and execute a web shell, enabling remote command execution on the vulnerable OpenEMR instance.

PUBLISHED Reserved 2026-01-14 | Published 2026-01-21 | Updated 2026-01-22 | Assigner VulnCheck




MEDIUM: 4.8CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
MEDIUM: 5.4CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Problem types

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Product status

5.0.2.1
affected

Credits

Hato0, BvThTrd finder

References

www.exploit-db.com/exploits/49784 (ExploitDB-49784) exploit

www.open-emr.org/ (OpenEMR Official Website) product

sourceforge.net/...ent/5.0.2.1/openemr-5.0.2.tar.gz/download (OpenEMR 5.0.2.1 Download) product

blog.sonarsource.com/...r&utm_term=security&utm_content=tofu (SonarSource Vulnerability Analysis) vendor-advisory

www.youtube.com/watch?v=H8VWNwWgYJo&feature=emb_logo (Vulnerability Demonstration Video) technical-description

www.vulncheck.com/advisories/openemr-remote-code-execution (VulnCheck Advisory: OpenEMR 5.0.2.1 - Remote Code Execution) third-party-advisory

cve.org (CVE-2021-47817)

nvd.nist.gov (CVE-2021-47817)

Download JSON