The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-42870

CVE-2026-42870: WeGIA Stored XSS Vulnerability

CVE-2026-42870 is a stored XSS flaw in WeGIA affecting versions prior to 3.7.0. Attackers can inject malicious scripts via the Description field that execute when profiles are viewed. This article covers technical details, impact, and mitigation.

Published: May 18, 2026

CVE-2026-42870 Overview

CVE-2026-42870 is a Stored Cross-Site Scripting (XSS) vulnerability in WeGIA, an open-source web manager used by charitable institutions. The flaw exists in versions prior to 3.7.0 within the funcionario/profile_funcionario.php endpoint. Attackers can inject malicious JavaScript into the Descrição (Description) field of an employee profile. The payload persists in the application and executes whenever any user views the affected profile page. The issue is tracked under [CWE-79] (Improper Neutralization of Input During Web Page Generation) and is fixed in WeGIA 3.7.0.

Critical Impact

Authenticated attackers can persistently store JavaScript that executes in the browser of any user viewing the targeted employee profile, enabling session theft, account takeover, and unauthorized actions within WeGIA.

Affected Products

  • WeGIA web manager versions prior to 3.7.0
  • Endpoint: funcionario/profile_funcionario.php
  • Vulnerable field: Descrição (Description) in employee profile

Discovery Timeline

  • 2026-05-11 - CVE-2026-42870 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42870

Vulnerability Analysis

The vulnerability is a Stored XSS issue in the employee profile management workflow of WeGIA. When an authenticated user saves an employee profile, the application accepts the Descrição field without performing sufficient output encoding or input sanitization. The submitted content is written to the backing database and later rendered inline when the profile is retrieved through profile_funcionario.php?id_funcionario=2.

Because the payload is persisted server-side, every subsequent request to the affected profile triggers execution in the victim's browser. This expands the blast radius beyond the original attacker and impacts administrators, managers, and other staff who legitimately view employee records. In a charitable institution context, viewers often hold elevated privileges, increasing the value of stolen sessions or coerced actions.

Root Cause

The root cause is missing contextual output encoding when rendering user-supplied profile data into HTML. The Descrição field is treated as trusted content rather than untrusted input. Standard defenses such as HTML entity encoding, Content Security Policy enforcement, and template auto-escaping were not applied to this code path before version 3.7.0.

Attack Vector

The attack vector is network-based and requires user interaction from a victim who navigates to the affected profile. An attacker with permission to edit an employee profile injects a JavaScript payload into the Description field and saves the profile. When a privileged user later opens that profile, the stored script runs with the victim's session context. Outcomes include cookie theft, CSRF-style operations against WeGIA APIs, and pivoting to administrative functions. Refer to the GitHub Security Advisory GHSA-q6jg-hfqv-882f for advisory details. No verified public exploit code is associated with this CVE.

Detection Methods for CVE-2026-42870

Indicators of Compromise

  • Employee profile records whose Descrição field contains HTML tags such as <script>, <img onerror=...>, <svg onload=...>, or javascript: URIs.
  • Unexpected outbound HTTP requests originating from browsers shortly after staff users access profile_funcionario.php.
  • Web server access logs showing POST requests to the employee profile update endpoint followed by anomalous GET traffic to attacker-controlled domains.

Detection Strategies

  • Run database queries against the employee profile table to identify rows where the description column contains angle brackets, event-handler attributes, or javascript: schemes.
  • Inspect HTTP response bodies served from profile_funcionario.php for unescaped script content using a web application firewall or proxy.
  • Correlate authenticated session activity with browser-side script execution anomalies, particularly requests not initiated by normal navigation.

Monitoring Recommendations

  • Enable verbose access logging for all WeGIA profile management endpoints and retain logs for forensic review.
  • Monitor for outbound connections from staff workstations to uncommon domains immediately following WeGIA usage.
  • Alert on Content Security Policy violation reports if a CSP is deployed in front of the application.

How to Mitigate CVE-2026-42870

Immediate Actions Required

  • Upgrade WeGIA to version 3.7.0 or later, which contains the official fix.
  • Audit all existing employee profile records for previously injected payloads and sanitize affected entries.
  • Rotate session tokens and credentials for users who may have viewed compromised profiles.
  • Restrict edit permissions on employee profiles to the smallest necessary set of trusted users until patching is complete.

Patch Information

The maintainers of WeGIA addressed this vulnerability in release 3.7.0. Administrators should pull the patched release from the WeGIA GitHub repository and follow the project's upgrade documentation. Details of the fix are documented in the GitHub Security Advisory GHSA-q6jg-hfqv-882f.

Workarounds

  • Deploy a web application firewall rule that blocks HTML and script tags in POST parameters submitted to profile_funcionario.php.
  • Apply a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins.
  • Temporarily disable employee profile editing for non-administrative roles until version 3.7.0 is installed.
bash
# Configuration example: minimal CSP header to mitigate inline script execution
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'"

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

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42872: WeGIA XSS Vulnerability

  • CVE-2026-45025: WeGIA Stored XSS Vulnerability

  • CVE-2026-45026: WeGIA Stored XSS Vulnerability

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