Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-32118

CVE-2026-32118: OpenEMR Stored XSS Vulnerability

CVE-2026-32118 is a stored cross-site scripting vulnerability in OpenEMR's Graphical Pain Map form that enables session hijacking. This article covers technical details, affected versions, impact, and mitigation.

Published: March 13, 2026

CVE-2026-32118 Overview

CVE-2026-32118 is a stored Cross-Site Scripting (XSS) vulnerability in OpenEMR, a widely-used free and open source electronic health records (EHR) and medical practice management application. The vulnerability exists in the Graphical Pain Map ("clickmap") form functionality and allows any authenticated clinician to inject arbitrary JavaScript that executes in the browser of every subsequent user who views the affected encounter form.

This vulnerability is particularly concerning in healthcare environments where OpenEMR manages sensitive patient data. Because session cookies are not marked HttpOnly, successful exploitation enables full session hijacking of other users, including administrators, potentially compromising the entire EHR system.

Critical Impact

Authenticated attackers can hijack administrator sessions through persistent XSS in the clickmap form, potentially gaining full control over the OpenEMR installation and accessing protected health information (PHI).

Affected Products

  • OpenEMR versions prior to 8.0.0.1

Discovery Timeline

  • 2026-03-11 - CVE CVE-2026-32118 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-32118

Vulnerability Analysis

This stored XSS vulnerability (CWE-79) resides in the Graphical Pain Map feature, which allows clinicians to document patient pain locations visually through an interactive "clickmap" interface. The application fails to properly sanitize user-supplied input before storing it in the database and subsequently rendering it in the browser when other users view the encounter form.

The attack is particularly effective because it targets a workflow component that is routinely accessed by multiple clinical staff members reviewing patient encounters. When a malicious clinician enters a crafted payload into the clickmap form fields, that payload is persistently stored and executed each time another user views the affected encounter.

The absence of the HttpOnly flag on session cookies significantly amplifies the impact. This security misconfiguration allows JavaScript code to access document.cookie, enabling attackers to exfiltrate session tokens and perform full session hijacking. An attacker could impersonate administrators, access sensitive patient records, modify medical data, or create backdoor accounts.

Root Cause

The root cause of this vulnerability is improper input validation and output encoding in the Graphical Pain Map form processing code. User-supplied data from the clickmap interface is stored without sufficient sanitization and later rendered in HTML contexts without proper encoding, allowing embedded JavaScript to execute in victims' browsers.

Additionally, the lack of HttpOnly cookie flags on session cookies represents a defense-in-depth failure that transforms what might otherwise be a limited XSS attack into a full session hijacking scenario.

Attack Vector

The attack vector is network-based and requires low-privilege authenticated access to the OpenEMR system. An attacker needs a valid clinician account to access the encounter forms and Graphical Pain Map functionality.

The attack flow proceeds as follows:

  1. Attacker authenticates to OpenEMR with valid clinician credentials
  2. Attacker navigates to a patient encounter and accesses the Graphical Pain Map form
  3. Attacker injects malicious JavaScript into clickmap form fields
  4. The payload is stored in the database
  5. When other users (including administrators) view the same encounter form, the malicious script executes
  6. The script can steal session cookies and send them to an attacker-controlled server
  7. Attacker uses stolen session tokens to impersonate victims

For technical details on the vulnerability and exploitation mechanics, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-32118

Indicators of Compromise

  • Unusual JavaScript patterns in encounter form data, particularly in clickmap-related database fields
  • Outbound HTTP requests from client browsers to unknown external domains during encounter form viewing
  • Session tokens appearing in web server access logs from unexpected IP addresses
  • Multiple users accessing the system from the same session identifier

Detection Strategies

  • Implement Content Security Policy (CSP) headers and monitor for CSP violation reports indicating XSS attempts
  • Deploy Web Application Firewall (WAF) rules to detect common XSS patterns in form submissions
  • Review database entries in clickmap-related tables for script tags, event handlers, or encoded JavaScript patterns
  • Monitor authentication logs for session anomalies such as geographic impossibilities or concurrent sessions

Monitoring Recommendations

  • Enable detailed logging for the encounter forms module, particularly the clickmap functionality
  • Set up alerts for any <script> tags or JavaScript event handlers appearing in form submission data
  • Monitor for unusual patterns of encounter form access, especially if multiple high-privilege accounts access the same record in quick succession
  • Implement browser-based XSS detection through CSP reporting endpoints

How to Mitigate CVE-2026-32118

Immediate Actions Required

  • Upgrade OpenEMR to version 8.0.0.1 or later immediately
  • Audit existing encounter forms for potentially malicious JavaScript payloads in clickmap data
  • Invalidate all active sessions to prevent exploitation of any stolen session tokens
  • Configure HttpOnly and Secure flags on session cookies as an additional defense measure

Patch Information

The vulnerability has been fixed in OpenEMR version 8.0.0.1. Organizations should upgrade to this version or later to remediate the vulnerability. The security fix addresses the input validation issues in the Graphical Pain Map form and implements proper output encoding to prevent XSS attacks.

For detailed patch information, see the GitHub Security Advisory.

Workarounds

  • Restrict access to the Graphical Pain Map form functionality to trusted users only until patching is complete
  • Implement a Web Application Firewall (WAF) with XSS filtering rules as a temporary mitigation
  • Manually add HttpOnly and Secure flags to session cookies in the PHP configuration
  • Consider temporarily disabling the clickmap form feature if it is not critical to clinical workflows
bash
# PHP configuration to enhance session cookie security
# Add to php.ini or OpenEMR's local configuration
session.cookie_httponly = 1
session.cookie_secure = 1
session.cookie_samesite = Strict

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechOpenemr

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • 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 World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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