Skip to main content

WeGIA CVE-2025-67496

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-12-09 security-advisories@github.com
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege user
  2. Delivery
    Store script payload in employee name
  3. Exploit
    Admin opens configurar_senhas.php dropdown
  4. Execution
    Script executes in admin browser context
  5. Impact
    Hijack admin session/perform privileged actions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) the attacker must be able to get a malicious employee 'name' value persisted into the funcionario/pessoa database records that feed the dropdown - implying either a low-privileged authenticated account with employee-create/edit capability or another data-entry path; and (2) a victim, realistically a higher-privileged administrator, must subsequently load /WeGIA/html/geral/configurar_senhas.php so the unescaped name renders inside an HTML <option> element and the stored script executes (UI:R). Limiting factors: this is a stored/persistent XSS gated behind authentication (PR:L) and victim interaction (UI:R), so it is not exploitable against an unauthenticated attacker or without a human viewing the affected page; it affects WeGIA versions 3.5.4 and below only and is remediated in 3.5.5, so patched or newer installations are not vulnerable.

Impact

This is a genuine but moderate-priority issue, not a top-tier emergency. The CVSS 3.1 base score of 5.4 (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) describes a network-reachable, low-complexity stored XSS that nonetheless requires an authenticated low-privileged account (PR:L) AND victim interaction (UI:R) - someone must load the password-configuration page and view the poisoned employee dropdown for the payload to fire. The low EPSS score (0.25%, 15th percentile) indicates very low probability of broad opportunistic exploitation, which is consistent with a self-XSS-adjacent, auth-and-interaction-gated flaw in a niche product rather than an internet-facing RCE. It is NOT listed in CISA KEV, so there is no evidence of active exploitation. However, public exploit code DOES exist (the GitHub Security Advisory GHSA-9843-qm67-73h2 is tagged as an exploit reference), so the barrier to weaponization is low for anyone who already has an account. The signals are internally consistent: moderate CVSS, low EPSS, no KEV, POC available - pointing to a real-but-contained vulnerability best handled through normal patch cycles rather than emergency response, prioritized higher for internet-exposed WeGIA instances with multiple user accounts of differing privilege. Scope is marked Changed (S:C) because the injected script executes in the browser context of a potentially higher-privileged administrator viewing the dropdown, enabling privilege escalation via session/UI hijack.

Exploit ScenarioDerived

An authenticated low-privilege WeGIA user (or an attacker who can influence an employee record) stores a malicious script inside an employee name field; the application later injects that name, unescaped, into an HTML <option> element on /WeGIA/html/geral/configurar_senhas.php. When an administrator opens the password-configuration page and the employee-selection dropdown renders, the script executes in the admin's session, enabling session/cookie theft or actions performed as the admin. Public exploit code exists via the GitHub Security Advisory, lowering the effort required to reproduce the attack.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 14, 2026

Stored cross-site scripting in WeGIA 3.5.4 and earlier allows an authenticated low-privileged user who can create or edit employee records to persist a JavaScript payload that later executes in the browser of any victim - realistically an administrator - who loads /WeGIA/html/geral/configurar_senhas.php and views the unsanitized employee dropdown. Publicly available exploit code exists, but exploitation requires an authenticated account (PR:L) plus victim interaction (UI:R), and the EPSS score of 0.25% (15th percentile) indicates a low likelihood of exploitation, so this is a genuine but moderate-priority issue rather than an emergency. The vendor fixed the defect in version 3.5.5.

RemediationAI

Vendor-released patch: 3.5.5 - upgrade every WeGIA instance from 3.5.4 or earlier to 3.5.5 or later per the release at https://github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.5.5 and the advisory at https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-9843-qm67-73h2, and review the fixing commit c80b8cacd310fd459df61c030fb267c5e68cafc7 if backporting is necessary. If immediate upgrade is impossible, the most direct compensating control is to restrict or block access to /WeGIA/html/geral/configurar_senhas.php at the web server or reverse-proxy layer for all but trusted administrators (trade-off: it disables legitimate password-configuration workflows until the patch is applied), and to tighten account permissions so that only a small, trusted group can create or edit employee/pessoa records that populate the dropdown (trade-off: it slows routine HR data entry). Because the payload is persisted, also audit the pessoa/funcionario name columns for injected markup and purge any found rows, and as an interim code-level fix HTML-encode the values when building the <option> list (for example PHP htmlspecialchars with ENT_QUOTES and an explicit UTF-8 charset), noting that aggressive input filtering of names can reject legitimate accented or punctuated entries common in the Portuguese-language user base. No vendor workaround beyond upgrading is documented in the provided references.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

WeGIA is an open-source PHP web application (MySQL/MariaDB-backed) aimed at Portuguese-language institutions, and the vulnerable endpoint is the password-configuration page html/geral/configurar_senhas.php. The pre-fix code used mysqli to query the funcionario, pessoa, cargo, and permissao tables and then injected the retrieved employee name directly into HTML <option> elements of the employee-selection dropdown without HTML-context escaping, which is a classic CWE-79 "improper neutralization of input during web page generation (cross-site scripting)" stored/persistent variant. Because the payload lives in the database, it is served to every user who renders the page, and the CVSS vector's Scope:Changed reflects that the injected script can act beyond the vulnerable component's security authority within the victim's session. The remediation commit c80b8cacd310fd459df61c030fb267c5e68cafc7 refactors the file (moving to a PDO/Conexao connection, adding a centralized permissao() permission check for resource 91, regenerating the session ID, and validating the session's id_pessoa with filter_var) and, per the GitHub security advisory, closes the output-escaping flaw; authentication requirements are confirmed by the CVSS vector as PR:L (low privileges required), and the exploit demands UI:R because a human must view the tainted dropdown.

Know when Wegia gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Authenticated data-entry access to store the payload gives PR:L; an admin must view the dropdown for execution so UI:R; script runs in the victim's browser context giving S:C with limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionNVD

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Versions 3.5.4 and below contain a Stored Cross-Site Scripting (XSS) vulnerability in the /WeGIA/html/geral/configurar_senhas.php endpoint. The application does not sanitize user-controlled data before rendering it inside the employee selection dropdown. The application retrieves employee names from the database and injects them directly into HTML <option> elements without proper escaping. This issue is fixed in version 3.5.5.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
niche open-source manager for Portuguese-language institutions, limited deployment
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)NVD

cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:*

More in Wegia

View all
CVE-2025-50201 CRITICAL POC
9.8 Jun 19

Critical OS Command Injection vulnerability in WeGIA (a web management system for charitable institutions) versions prio

CVE-2025-27140 CRITICAL POC
10.0 Feb 24

WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-26613 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-55169 CRITICAL POC
10.0 Aug 12

WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Rated critical

CVE-2025-30364 CRITICAL POC
10.0 Mar 27

WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-46828 CRITICAL POC
10.0 May 07

WeGIA is a web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-26612 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26617 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26611 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26609 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26608 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26607 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy