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

CVE-2026-40283: WeGIA Stored XSS Vulnerability

CVE-2026-40283 is a stored XSS flaw in WeGIA that lets authenticated users inject malicious scripts via patient information forms. This post covers technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-40283 Overview

CVE-2026-40283 is a Stored Cross-Site Scripting (XSS) vulnerability affecting WeGIA, a web manager designed for charitable institutions. In versions prior to 3.6.10, an authenticated user can inject malicious JavaScript code via the "Nome" field in the "Informações Pacientes" (Patient Information) page. The injected payload is stored in the application database and executed whenever the affected patient information is viewed by other users, potentially leading to session hijacking, credential theft, or unauthorized actions on behalf of victims.

Critical Impact

Authenticated attackers can persistently inject malicious scripts that execute in the context of other users' sessions, potentially compromising sensitive patient data and administrative accounts in charitable institution management systems.

Affected Products

  • WeGIA versions prior to 3.6.10

Discovery Timeline

  • 2026-04-17 - CVE CVE-2026-40283 published to NVD
  • 2026-04-20 - Last updated in NVD database

Technical Details for CVE-2026-40283

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability (CWE-79) occurs due to insufficient input sanitization in the WeGIA patient information management module. When a user enters data into the "Nome" (Name) field on the patient information page, the application fails to properly encode or sanitize user-supplied input before storing it in the database. Subsequently, when this data is retrieved and rendered in the browser for viewing, the malicious JavaScript executes within the security context of the viewing user's session.

The vulnerability requires authenticated access to exploit, meaning an attacker must first obtain valid credentials to the WeGIA application. However, once the malicious payload is stored, it will execute for any user who views the compromised patient record, including administrators with elevated privileges.

Root Cause

The root cause is improper output encoding of user-supplied data. The "Nome" field accepts arbitrary input without adequate validation or sanitization, and the application renders this content directly in HTML without proper escaping. This allows specially crafted input containing JavaScript code to be interpreted and executed by the browser rather than displayed as plain text.

Attack Vector

The attack is conducted over the network by an authenticated user who has access to create or modify patient records in the WeGIA system. The attacker navigates to the "Informações Pacientes" page and enters a malicious JavaScript payload in the "Nome" field. When saved, this payload becomes persistently stored in the application's database.

Any subsequent user who views the compromised patient record will unknowingly execute the injected script in their browser session. This could enable the attacker to steal session cookies, capture keystrokes, redirect users to malicious sites, or perform actions on behalf of the victim user. The impact is amplified in healthcare management contexts where sensitive patient data may be accessible.

For technical details regarding this vulnerability, see the GitHub Security Advisory.

Detection Methods for CVE-2026-40283

Indicators of Compromise

  • Unexpected JavaScript code or HTML tags present in patient name fields or other data entry fields
  • Browser console errors or suspicious script execution when viewing patient records
  • Unusual session activity or unauthorized actions performed by user accounts
  • Database entries containing <script> tags, event handlers (e.g., onerror, onload), or encoded JavaScript

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block common XSS payloads in HTTP requests
  • Monitor application logs for unusual patterns in user input fields, particularly special characters and HTML/JavaScript syntax
  • Deploy Content Security Policy (CSP) headers and monitor for CSP violation reports
  • Conduct regular code audits and automated security scans focusing on input/output handling

Monitoring Recommendations

  • Enable detailed logging of all user input modifications in patient management modules
  • Set up alerts for CSP violations which may indicate attempted or successful XSS exploitation
  • Monitor for anomalous session behavior such as session tokens being accessed from multiple IP addresses
  • Implement integrity monitoring on critical patient data fields to detect unauthorized modifications

How to Mitigate CVE-2026-40283

Immediate Actions Required

  • Upgrade WeGIA to version 3.6.10 or later immediately to address this vulnerability
  • Audit existing patient records in the database for any malicious script content
  • Review access logs to identify any potential exploitation attempts
  • Consider temporarily restricting write access to patient information fields until the patch is applied

Patch Information

Version 3.6.10 of WeGIA addresses this Stored XSS vulnerability by implementing proper input sanitization and output encoding for the "Nome" field and related patient information fields. Organizations should update to this version or the latest available release as soon as possible. For more information, refer to the GitHub Security Advisory.

Workarounds

  • Implement server-side input validation to strip or encode HTML special characters from all user input fields
  • Deploy Content Security Policy (CSP) headers to restrict script execution to trusted sources only
  • Use HTTP-only and Secure flags on session cookies to reduce the impact of potential session hijacking
  • Consider implementing a Web Application Firewall (WAF) with XSS protection rules as a defense-in-depth measure
bash
# Example CSP header configuration for Apache
# Add to .htaccess or httpd.conf
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'none';"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWegia

  • SeverityMEDIUM

  • CVSS Score6.8

  • EPSS Probability0.04%

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

  • CVE-2026-40284: WeGIA Stored XSS Vulnerability

  • CVE-2026-40282: WeGIA Stored XSS Vulnerability

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