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

CVE-2026-40284: WeGIA Stored XSS Vulnerability

CVE-2026-40284 is a stored XSS vulnerability in WeGIA web manager that allows authenticated users to inject malicious JavaScript. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-40284 Overview

WeGIA is a web manager for charitable institutions. A Stored Cross-Site Scripting (XSS) vulnerability exists in versions prior to 3.6.10 that allows an authenticated user to inject malicious JavaScript via the "Destinatário" field. The payload is stored in the application database and later executed when other users view the dispatch page, potentially impacting all users who access this functionality.

Critical Impact

Authenticated attackers can inject persistent JavaScript payloads that execute in the context of other users' sessions, potentially leading to session hijacking, credential theft, or unauthorized actions on behalf of victims.

Affected Products

  • WeGIA versions prior to 3.6.10

Discovery Timeline

  • April 17, 2026 - CVE-2026-40284 published to NVD
  • April 20, 2026 - Last updated in NVD database

Technical Details for CVE-2026-40284

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability (CWE-79) occurs due to insufficient input sanitization in the "Destinatário" field within WeGIA's dispatch functionality. When an authenticated user submits content containing malicious JavaScript through this field, the application fails to properly encode or sanitize the input before storing it in the database.

The stored payload is subsequently rendered without proper output encoding when other users navigate to the dispatch page, causing the malicious script to execute in their browser context. This type of persistent XSS is particularly dangerous because it does not require social engineering to trick users into clicking a malicious link—the attack payload is automatically delivered to anyone who views the affected page.

Root Cause

The vulnerability stems from improper input validation and output encoding in the WeGIA application. Specifically, the "Destinatário" field lacks adequate sanitization measures that would prevent the storage and execution of JavaScript code. The application accepts and stores user-supplied input without neutralizing special characters that have meaning in HTML/JavaScript contexts, and subsequently renders this content directly into the page without proper escaping.

Attack Vector

The attack is network-based and requires authentication to the WeGIA application. An attacker with valid credentials can craft a malicious payload containing JavaScript code and submit it through the "Destinatário" field. Once stored, this payload executes automatically when any user views the dispatch page containing the malicious entry.

Potential attack scenarios include:

  • Session Hijacking: Stealing session cookies to impersonate other users
  • Credential Theft: Injecting fake login forms to capture user credentials
  • Malware Distribution: Redirecting users to malicious external sites
  • Data Exfiltration: Accessing and transmitting sensitive information visible to the victim
  • Privilege Escalation: Performing actions on behalf of administrators who view the page

For detailed technical information about this vulnerability, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-40284

Indicators of Compromise

  • Unusual JavaScript patterns stored in the "Destinatário" field or other user-input fields in the WeGIA database
  • HTTP requests containing encoded script tags or event handlers in form submissions
  • Unexpected outbound network connections from client browsers to unknown external domains
  • Reports from users experiencing abnormal browser behavior when accessing dispatch pages

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block common XSS payload patterns in form submissions
  • Monitor application logs for form submissions containing suspicious characters such as <script>, javascript:, onerror=, or other common XSS vectors
  • Deploy Content Security Policy (CSP) headers and monitor for policy violations that may indicate XSS attempts
  • Conduct periodic database audits to identify stored payloads containing potential malicious scripts

Monitoring Recommendations

  • Enable detailed logging for all form submissions to the WeGIA application, particularly fields that accept user input
  • Configure alerting for unusual patterns in HTTP POST requests to dispatch-related endpoints
  • Monitor browser console errors and CSP violation reports from production deployments
  • Implement real-time security monitoring with endpoint detection and response solutions like SentinelOne

How to Mitigate CVE-2026-40284

Immediate Actions Required

  • Upgrade WeGIA to version 3.6.10 or later immediately to address this vulnerability
  • Audit the database for any existing malicious payloads stored in the "Destinatário" field and sanitize affected records
  • Review access logs to identify any potential exploitation attempts prior to patching
  • Consider temporarily restricting access to the dispatch functionality if immediate patching is not possible

Patch Information

The WeGIA development team has addressed this vulnerability in version 3.6.10. Organizations should update their installations to this version or later. For more information, refer to the GitHub Security Advisory.

Workarounds

  • Implement input validation at the application level to reject submissions containing HTML or JavaScript in the "Destinatário" field
  • Deploy a Web Application Firewall (WAF) with rules configured to block XSS payloads
  • Enable Content Security Policy (CSP) headers to prevent inline script execution as a defense-in-depth measure
  • Restrict access to the dispatch functionality to only trusted users until the patch can be applied
bash
# Example: Apache Content Security Policy header configuration
# Add to Apache configuration or .htaccess
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"

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-40283: WeGIA Stored XSS Vulnerability

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