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-46518

CVE-2026-46518: OpenEMR Stored XSS Vulnerability

CVE-2026-46518 is a stored XSS vulnerability in OpenEMR that lets patient portal users execute malicious JavaScript in clinician sessions. This article covers the technical details, affected versions, and patches.

Published: June 11, 2026

CVE-2026-46518 Overview

CVE-2026-46518 is a stored cross-site scripting (XSS) vulnerability in OpenEMR, an open source electronic health records and medical practice management application. The flaw affects versions prior to 8.0.0.1 and resides in the prescription CSS/HTML multi-print feature. A patient portal user can inject arbitrary JavaScript that executes in a clinician's authenticated browser session, crossing the patient-to-clinician trust boundary. The vulnerability is tracked under [CWE-79] and has been patched in OpenEMR version 8.0.0.1.

Critical Impact

An authenticated portal patient can execute JavaScript in a clinician's session, exposing CSRF tokens, session data, and enabling actions performed as the clinician.

Affected Products

  • OpenEMR versions prior to 8.0.0.1
  • OpenEMR patient portal component
  • OpenEMR prescription multi-print feature (multiprintcss_header())

Discovery Timeline

  • 2026-06-10 - CVE-2026-46518 published to NVD
  • 2026-06-10 - Last updated in NVD database

Technical Details for CVE-2026-46518

Vulnerability Analysis

The vulnerability resides in the multiprintcss_header() function used by OpenEMR's prescription multi-print feature. Patient demographic fields, including name and address, are rendered into HTML output without proper output encoding. A patient portal user can inject HTML and JavaScript payloads into these demographic fields. When a clinician opens the multi-print prescription view, the malicious payload executes in the clinician's authenticated session on the main OpenEMR interface.

The attack crosses a trust boundary. OpenEMR normally requires audit review of patient-submitted changes to demographic data. The portal API endpoint bypasses that workflow and writes attacker-controlled values directly into the patient_data table.

Root Cause

Two defects combine to produce the vulnerability. First, multiprintcss_header() concatenates patient demographic strings into HTML without applying output encoding or HTML escaping. Second, the PUT api/patient/:num endpoint accepts portal patient submissions and stores them in patient_data without routing them through the audit review queue. The combination allows persistent script storage and reliable execution in a privileged session.

Attack Vector

An authenticated portal patient sends a PUT request to api/patient/:num with HTML payloads embedded in fields such as name or address. The injected content is stored directly in patient_data. When any clinician later renders the patient through the prescription multi-print interface, the stored payload executes in the clinician's browser. The attacker can read CSRF tokens, harvest session data, and issue authenticated requests as the clinician.

No verified public exploit code is available. See the GitHub Security Advisory for technical details.

Detection Methods for CVE-2026-46518

Indicators of Compromise

  • Patient demographic fields in patient_data containing HTML tags such as <script>, <img onerror=>, or <svg onload=>.
  • PUT requests to api/patient/:num originating from portal accounts containing HTML or JavaScript payloads in name or address parameters.
  • Unexpected clinician-initiated actions immediately following access to the prescription multi-print view.

Detection Strategies

  • Review web server access logs for portal API calls to api/patient/:num with request bodies containing angle brackets or script keywords.
  • Audit the patient_data table for stored values containing HTML markup in fields that should hold plain text.
  • Monitor browser console errors and unexpected outbound requests from clinician workstations rendering the multi-print interface.

Monitoring Recommendations

  • Enable verbose application logging on the OpenEMR REST API and ingest logs into a centralized SIEM for query and alerting.
  • Alert on portal patient API requests that contain encoded or raw HTML payloads in demographic fields.
  • Correlate clinician session activity with prior portal patient updates to identify potential session abuse.

How to Mitigate CVE-2026-46518

Immediate Actions Required

  • Upgrade OpenEMR to version 8.0.0.1 or later, which contains the official fix.
  • Audit patient_data for stored HTML payloads in demographic fields and sanitize any malicious entries before clinicians view affected records.
  • Restrict access to the prescription multi-print feature until the patch is deployed.

Patch Information

The OpenEMR project addressed CVE-2026-46518 in version 8.0.0.1. The fix applies output encoding to patient demographic fields rendered by multiprintcss_header() and routes portal API updates through the audit review workflow. Patch details are documented in the OpenEMR GitHub Security Advisory GHSA-4gh4-q39r-45wf.

Workarounds

  • Disable the patient portal PUT api/patient/:num endpoint until upgrade is possible.
  • Manually review and HTML-encode patient demographic data before clinicians access prescription printing features.
  • Apply a web application firewall rule to block portal API requests containing HTML tags in demographic fields.
bash
# Configuration example - WAF rule pattern to block HTML in portal demographic updates
# Example ModSecurity rule (adapt to your environment)
SecRule REQUEST_URI "@rx ^/apis/.*/api/patient/[0-9]+$" \
  "id:1004651,phase:2,deny,status:403,\
   chain,msg:'Blocking HTML in OpenEMR portal patient update'"
  SecRule REQUEST_BODY "@rx <[a-zA-Z/!]" "t:none"

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 Score7.7

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33348: OpenEMR Stored XSS Vulnerability

  • CVE-2026-33346: 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