CVE-2026-126418

OpenEMR before 8.5.0 Stored XSS via Billing Code in sl_eob_invoice.php

Published Nov 13, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability in interface/billing/sl_eob_invoice.php, which escapes billing codes for HTML attributes but not for JavaScript strings in an inline onkeyup handler. Clinicians with encounter coding access can save crafted billing codes through diagnosis.php that execute script when a Back Office user enters a payment, exposing patient and financial data or performing actions as that user.

Analysis

AI-generated

Technical impact

A stored cross‑site scripting flaw exists in OpenEMR's sl_eob_invoice.php. The application escapes billing codes for HTML attributes but fails to sanitize JavaScript strings in an inline onkeyup handler. Messages that an attacker can store malicious code in a billing code via diagnosis.php. When a Back‑Office user subsequently enters a payment, the payload executes in the victim’s browser, allowing the attacker to read patient and financial information or perform actions with the user’s privileges.

Affected Systems

The exploit affects OpenEMR installations running any release prior to 8.5.0. The vulnerability is tied to the openemr:openemr product family.

Risk and Exploitability

The CVSS score of 6.9 signals moderate to high severity, but the EPSS score of less than 1% indicates that, at present, exploitation likelihood is very low. The injection is stored; the attacker needs encounter‑coding access to save a payload and a separate Back‑Office user must trigger a payment to run the script. This suggests the attack vector is internal, requiring legitimate credentials with neither direct nor cross‑site scripting privileges. The vulnerability is not listed in the CISA KEV catalog, so it has no publicly confirmed exploits.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEMR to version 8.5.0 or later
  • Restrict encounter coding privileges; monitor for anomalous billing code entries
  • As a temporary measure, remove or properly escape the JavaScript context handling billing codes (e.g., strip HTML/JS tags or change onkeyup handler)

Generated by OpenCVE AI on November 14, 2026 at 15:23 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': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability in interface/billing/sl_eob_invoice.php, which escapes billing codes for HTML attributes but not for JavaScript strings in an inline onkeyup handler. Clinicians with encounter coding access can save crafted billing codes through diagnosis.php that execute script when a Back Office user enters a payment, exposing patient and financial data or performing actions as that user.
Title OpenEMR before 8.5.0 Stored XSS via Billing Code in sl_eob_invoice.php
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-79
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 17, 2026, 2:49 PM
Reserved
Nov 10, 2026, 9:34 PM
Status
Analyzed
Published
Nov 13, 2026, 10:17 AM
Modified
Nov 19, 2026, 4:44 PM