CVE-2026-103935

OpenEMR: Stored XSS via `text()` Misuse in Double-Quoted HTML Attribute

Published Nov 5, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.3.0, interface/forms/transfer_summary/new.php and interface/forms/functional_cognitive_status/new.php render stored transfer_to, code, and codetext values with text(), which uses ENT_NOQUOTES, inside double-quoted HTML value attributes. An authenticated clinical user can store a value containing a double quote that escapes the attribute and injects event-handler markup when another clinician opens the form. Successful exploitation can expose session data and protected health information or permit patient-record actions in the victim's session. This issue is fixed in version 8.3.0.

Analysis

AI-generated

Technical impact

The vulnerability arises when the OpenEMR application renders stored values for transfer_to, code, and codetext inside double‑quoted HTML attributes without proper encoding, allowing an attacker who can submit a value containing a quotation mark to break out of the attribute scope and inject event‑handler JavaScript. The injected payload executes in the victim’s browser and can read session data, expose protected health information, or perform unauthorized patient‑record actions. This flaw is a classic stored XSS (CWE‑79) that enables exploitation whenever an authenticated clinical user stores inappropriate input and another clinician subsequently views the form.

Affected Systems

OpenEMR, versions prior to 8.3.0. The issue affects the interface/forms/transfer_summary/new.php and interface/forms/functional_cognitive_status/new.php pages, which are part of the standard OpenEMR distribution. Any deployment using an OpenEMR build released before 8.3.0 is vulnerable. The fix was included in the 8.3.0 release, so systems still running earlier major or minor versions are impacted.

Risk and Exploitability

The CVSS score of 8.1 indicates a high severity for the combination of confidentiality, integrity, and availability impacts. EPSS is not available, but the attack can be performed by an authenticated user and requires no special privileges beyond normal clinical access, making it relatively low‑effort. The flaw is not listed in CISA’s KEV catalog, but because it permits injection of arbitrary scripts into a web browser session, skilled adversaries could leverage it in targeted phishing or credential‑stealing campaigns. The attack vector is the web application, derived from the described stored input that is later rendered without proper escaping.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Deploy a Content Security Policy that blocks execution of inline scripts and disallows event‑handler attributes.
  • Upgrade to OpenEMR 8.3.0 or newer to receive the fix for the stored XSS flaw.
  • If upgrading is not immediately possible, apply the security patch from the vendor that corrects the attribute escaping in the affected forms.

Generated by OpenCVE AI on November 5, 2026 at 21:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Open-emr
Open-emr openemr
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.3.0, interface/forms/transfer_summary/new.php and interface/forms/functional_cognitive_status/new.php render stored transfer_to, code, and codetext values with text(), which uses ENT_NOQUOTES, inside double-quoted HTML value attributes. An authenticated clinical user can store a value containing a double quote that escapes the attribute and injects event-handler markup when another clinician opens the form. Successful exploitation can expose session data and protected health information or permit patient-record actions in the victim's session. This issue is fixed in version 8.3.0.
Title OpenEMR: Stored XSS via `text()` Misuse in Double-Quoted HTML Attribute
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 5:43 PM
Reserved
Oct 1, 2026, 2:20 PM
Status
Analyzed
Published
Nov 5, 2026, 8:17 PM
Modified
Nov 10, 2026, 7:16 PM