A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33346

CVE-2026-33346: OpenEMR Stored XSS Vulnerability

CVE-2026-33346 is a stored XSS vulnerability in OpenEMR's patient portal that allows attackers to inject malicious JavaScript targeting staff members. This article covers the technical details, affected versions, and patches.

Published: March 20, 2026

CVE-2026-33346 Overview

A stored cross-site scripting (XSS) vulnerability has been identified in OpenEMR, a widely used free and open source electronic health records and medical practice management application. The vulnerability exists in the patient portal payment flow and allows a patient portal user to persist arbitrary JavaScript that executes in the browser of a staff member who reviews the payment submission.

The malicious payload is stored via portal/lib/paylib.php and rendered without proper escaping in portal/portal_payment.php. This vulnerability poses significant risk in healthcare environments where compromised staff accounts could lead to unauthorized access to sensitive patient health information.

Critical Impact

Attackers can execute arbitrary JavaScript in staff member browsers, potentially leading to session hijacking, credential theft, and unauthorized access to protected health information (PHI) within the OpenEMR system.

Affected Products

  • OpenEMR versions prior to 8.0.0.2
  • OpenEMR Patient Portal Payment Module
  • OpenEMR installations with patient portal enabled

Discovery Timeline

  • 2026-03-19 - CVE CVE-2026-33346 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-33346

Vulnerability Analysis

This stored XSS vulnerability (CWE-79) represents a classic case of insufficient output encoding in a web application. The vulnerability occurs when user-controlled data from the payment submission flow is stored in the database and later rendered directly into a JavaScript context without proper sanitization or escaping.

The attack requires a valid patient portal account (low privileges) and user interaction from a staff member who must view the malicious payment submission. Once triggered, the JavaScript executes in the context of the staff member's authenticated session, potentially allowing the attacker to perform actions on behalf of the staff user, steal session tokens, or access sensitive patient data visible to that staff member.

Root Cause

The root cause is improper neutralization of input during web page generation. Specifically, the portal/portal_payment.php file directly embeds user-controlled data (table_args and checksum values) into inline JavaScript without using the appropriate escaping function (js_escape()). This allows attackers to break out of the JavaScript string context and inject arbitrary code.

Attack Vector

The attack vector is network-based and requires the attacker to have authenticated access to the patient portal. The attacker submits a payment with a crafted payload containing malicious JavaScript. When a staff member subsequently views this payment submission through the administrative interface, the stored JavaScript executes in their browser context.

php
// Vulnerable code in portal/portal_payment.php
if ($edata) {
    $ccdata = json_decode($cryptoGen->decryptStandard($edata['checksum']), true);
    $invdata = json_decode((string) $edata['table_args'], true);
-    echo "<script>var jsondata='" . $edata['table_args'] . "';var ccdata='" . $edata['checksum'] . "'</script>";
+    echo "<script>var jsondata=" . js_escape($edata['table_args']) . ";var ccdata=" . js_escape($edata['checksum']) . "</script>";
}

// Display a row of data for an encounter.

Source: GitHub Commit Update

Detection Methods for CVE-2026-33346

Indicators of Compromise

  • Unusual JavaScript patterns in payment submission data fields containing characters like </script>, <script>, or event handlers
  • Unexpected network requests originating from staff browsers when viewing payment records
  • Anomalous administrative actions performed by staff accounts following payment reviews
  • Browser console errors indicating script execution failures from malformed XSS attempts

Detection Strategies

  • Implement web application firewall (WAF) rules to detect XSS patterns in payment submission requests
  • Monitor application logs for payment submissions containing HTML/JavaScript syntax
  • Enable Content Security Policy (CSP) violation reporting to detect inline script execution attempts
  • Review audit logs for unusual administrative actions following payment review workflows

Monitoring Recommendations

  • Configure browser-based monitoring for unexpected DOM modifications during payment review sessions
  • Implement server-side input validation logging to track potentially malicious submissions
  • Monitor for session anomalies such as concurrent sessions or geographic impossibilities following payment reviews
  • Enable real-time alerting on CSP violations from the patient portal and administrative interfaces

How to Mitigate CVE-2026-33346

Immediate Actions Required

  • Upgrade OpenEMR to version 8.0.0.2 or later immediately
  • Review existing payment submissions for potentially malicious payloads
  • Audit staff account activity for signs of compromise
  • Implement Content Security Policy headers to prevent inline script execution
  • Consider temporarily restricting patient portal payment functionality until patching is complete

Patch Information

OpenEMR has released version 8.0.0.2 which addresses this vulnerability. The fix implements proper JavaScript escaping using the js_escape() function when rendering user-controlled data in script contexts. The security patch is available via the GitHub Commit Update.

For detailed vulnerability information, refer to the GitHub Security Advisory GHSA-qvf6-6xc6-9qv7.

Workarounds

  • Implement a Content Security Policy (CSP) header that disallows inline scripts to mitigate XSS exploitation
  • Deploy a Web Application Firewall (WAF) with XSS filtering rules for the patient portal endpoints
  • Temporarily disable the patient portal payment functionality until the patch can be applied
  • Restrict staff access to payment review functionality to a limited set of accounts that can be closely monitored
bash
# Apache configuration example - Add CSP header to mitigate XSS
<IfModule mod_headers.c>
    Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';"
</IfModule>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechOpenemr

  • SeverityHIGH

  • CVSS Score8.7

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-qvf6-6xc6-9qv7
  • Related CVEs
  • CVE-2026-46518: OpenEMR Stored XSS Vulnerability

  • CVE-2026-33348: OpenEMR Stored XSS Vulnerability

  • CVE-2026-33303: OpenEMR Stored XSS Vulnerability

  • CVE-2026-33299: OpenEMR Stored XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English