Overview
This report focuses on the CVE-2025-43860 vulnerability found in the OpenEMR, an open-source electronic health records and medical practice management application. This vulnerability, a stored cross-site scripting (XSS) issue, affects versions prior to 7.0.3.4 and could allow an authenticated user with patient creation and editing privileges to inject malicious JavaScript code into the system, potentially leading to system compromise or data leakage.
Vulnerability Summary
CVE ID: CVE-2025-43860
Severity: High (7.6 CVSS)
Attack Vector: Web-based
Privileges Required: Low (Authenticated user with editing privileges)
User Interaction: Required
Impact: Potential system compromise or data leakage
Affected Products
Share secrets securely
Ameeba is private infrastructure for communication and sensitive work built on encrypted identity instead of exposed corporate identity systems.
Passwords, credentials, confidential files, screenshots, internal discussions, sensitive AI context, and private coordination should not become exposed across ordinary communication platforms.
- • Encrypted identity
- • Private Spaces for organizations and teams
- • End-to-end encrypted chat, calls, files, and notes
- • Sensitive AI work and protected collaboration
- • Built for information that cannot leak
Our mission is to secure human work alongside AI.
Product | Affected Versions
OpenEMR | Prior to 7.0.3.4
How the Exploit Works
An authenticated user with patient creation and editing privileges can exploit this vulnerability by entering malicious JavaScript payloads into the Text Box fields of Address, Address Line 2, Postal Code and City fields, as well as the Drop Down menu options of Address Use, State and Country in the Contact tab’s Additional Addresses section. The injected script can execute in two scenarios: (1) dynamically during form input, and (2) when the form data is later loaded for editing.
Conceptual Example Code
Below is a conceptual example of how the vulnerability might be exploited using a malicious JavaScript payload:
POST /OpenEMR/endpoint HTTP/1.1
Host: target.example.com
Content-Type: application/json
{
"additional_address": {
"address": "<script>malicious_code_here</script>",
"address_line_2": "<script>malicious_code_here</script>",
"postal_code": "<script>malicious_code_here</script>",
"city": "<script>malicious_code_here</script>",
"address_use": "<script>malicious_code_here</script>",
"state": "<script>malicious_code_here</script>",
"country": "<script>malicious_code_here</script>"
}
}
This exploit could result in arbitrary JavaScript code execution whenever the injected data is loaded, potentially compromising the system or causing data leakage. Users are strongly advised to update to version 7.0.3.4 or later, which contains a patch for this vulnerability. Alternatively, a Web Application Firewall (WAF) or Intrusion Detection System (IDS) could be utilized as a temporary mitigation measure.
