---
id: CVE-2026-126418
title: OpenEMR before 8.5.0 Stored XSS via Billing Code in sl_eob_invoice.php
summary: >-
  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 wi…
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-79
vendor: openemr
product: openemr
affected:
  - openemr < 8.5.0
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-17T14:48:44.885934Z'
exploitAvailable: true
published: '2026-11-13'
updated: '2026-11-17'
sourceUpdated: '2026-11-17T14:49:17.481Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-126418'
references:
  - url: 'https://github.com/openemr/openemr/security/advisories/GHSA-v7qh-q4xq-28v3'
    label: GitHub Security Advisory (GHSA-v7qh-q4xq-28v3)
  - url: >-
      https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-billing-code-in-sl-eob-invoice-php
    label: >-
      VulnCheck Advisory: OpenEMR before 8.5.0 Stored XSS via Billing Code in
      sl_eob_invoice.php
tags:
  - cve.org
  - exploit-available
epss: 0.00304
epssPercentile: 0.23363
ingestedAt: '2026-11-13T10:36:39.536Z'
---

## Overview

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.

## Affected

- `openemr < 8.5.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
