---
id: CVE-2026-126493
title: OpenEMR before 8.5.0 Stored XSS via OnsitePortalActivity tableArgs
summary: >-
  OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability that
  allows low-privileged patient portal users to inject JavaScript via the
  tableArgs field of the onsiteportalactivity API. Attackers can store a payload
  with sp…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/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-13T19:23:48.314092Z'
exploitAvailable: true
published: '2026-11-13'
updated: '2026-11-13'
sourceUpdated: '2026-11-13T19:24:15.882Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-126493'
references:
  - url: 'https://github.com/openemr/openemr/security/advisories/GHSA-r4hm-frcj-qr39'
    label: GitHub Security Advisory (GHSA-r4hm-frcj-qr39)
  - url: >-
      https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-onsiteportalactivity-tableargs
    label: >-
      VulnCheck Advisory: OpenEMR before 8.5.0 Stored XSS via
      OnsitePortalActivity tableArgs
tags:
  - cve.org
  - exploit-available
epss: 0.00661
epssPercentile: 0.4648
ingestedAt: '2026-11-13T10:36:39.602Z'
---

## Overview

OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability that allows low-privileged patient portal users to inject JavaScript via the tableArgs field of the onsiteportalactivity API. Attackers can store a payload with spaces that breaks out of an unquoted data-delete-id attribute, executing script when providers click the delete button on the audit review page.

## Affected

- `openemr < 8.5.0`

## Remediation

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