Skip to main content

WeGIA CVE-2025-62178

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-10-13 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
    Obtain low-privileged WeGIA account
  2. Delivery
    Craft link with payload in idatendido param
  3. Exploit
    Victim clicks malicious URL
  4. Execution
    Reflected script executes in victim browser
  5. Impact
    Steal session or act as victim

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 an authenticated WeGIA session (PR:L) because the vulnerable endpoint /html/atendido/cadastro_atendido_parentesco_pessoa_nova.php sits within the application's managed area, and it requires the victim to click an attacker-crafted link carrying a payload in the idatendido GET parameter (UI:R). The specific trigger is the unsanitized reflection of $_GET['idatendido'] into a hidden input's value attribute. Limiting factors: both a valid low-privilege account and victim interaction are needed, impact is confined to the browser (C:L/I:L, no availability impact), and any instance updated to WeGIA 3.5.1 or later is not vulnerable.

Impact

This is a genuinely moderate-but-not-urgent issue. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, 5.4 Medium) describes a reflected XSS requiring both authentication (PR:L) and victim interaction (UI:R) to click a crafted link, with only limited confidentiality and integrity impact (C:L/I:L) achieved through a changed scope (S:C, script running in the victim's browser context). The signals are internally consistent and align with the commit evidence: the sink is an unescaped $_GET['idatendido'] echoed into a hidden input, which is a textbook reflected XSS. EPSS is low at 0.24% (13th percentile), indicating low probability of mass exploitation, and the CVE is NOT on CISA KEV, so there is no evidence of active exploitation. A POC does exist (the GitHub Security Advisory GHSA-fj32-779r-28qv documents the vector), so publicly available exploit code exists - but POC availability is distinct from active exploitation and should not be conflated. Net: this is a real, confirmed, low-complexity bug worth patching in routine cycles, but the authentication + user-interaction prerequisites plus limited impact and low real-world footprint make it a low-to-medium operational priority rather than an emergency.

Exploit ScenarioDerived

An attacker with a low-privileged WeGIA account crafts a URL to /html/atendido/cadastro_atendido_parentesco_pessoa_nova.php with a malicious script payload in the idatendido parameter and lures an authenticated victim into clicking it. The reflected payload executes in the victim's browser session, enabling session/credential theft or actions in the victim's context. A POC is publicly documented in the GitHub Security Advisory, and low attack complexity makes reliable exploitation straightforward once a victim clicks.

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 01, 2026

Reflected cross-site scripting in WeGIA versions prior to 3.5.1 lets an authenticated, low-privilege attacker inject script into the idatendido GET parameter of the /html/atendido/cadastro_atendido_parentesco_pessoa_nova.php endpoint, which is echoed unsanitized into a hidden input field and executes in the victim's browser when a crafted link is clicked. Exploitation requires a valid WeGIA session (PR:L) plus victim interaction (UI:R), and impact is limited to the browser context with low confidentiality and integrity effects and no availability impact. The flaw is fixed in WeGIA 3.5.1, publicly available exploit code exists, and EPSS is low at 0.24% (13th percentile) with no indication of confirmed active exploitation.

RemediationAI

Upgrade WeGIA to version 3.5.1 or later, which is the vendor-released fix and applies htmlspecialchars() to the idatendido parameter (commit e39390f2c0172e8a127b9437e15e71ac4a0e77cf); advisory details are at https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-fj32-779r-28qv and issue https://github.com/LabRedesCefetRJ/WeGIA/issues/1181. If immediate upgrade is not possible, apply compensating controls: restrict access to the affected atendido module and its cadastro_atendido_parentesco_pessoa_nova.php endpoint to trusted networks or IP ranges via web server ACLs (trade-off: legitimate staff lose remote access to that workflow); deploy a WAF or reverse-proxy rule that rejects requests whose idatendido parameter contains quote, angle bracket, or script-like sequences (trade-off: false positives on unusual but valid identifiers, and the rule is bypassable if encoding is not normalized); enforce a strict Content-Security-Policy without unsafe-inline on the application so injected inline script cannot execute (trade-off: may break existing inline JavaScript in WeGIA's legacy pages and requires testing); and remind authenticated users not to follow unsolicited links while logged in, since exploitation depends on victim interaction. Reviewing logs for requests carrying script payloads in idatendido can help detect prior attempts.

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

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically a reflected XSS in a PHP page of the WeGIA application, an open-source Web Manager for Institutions aimed at Portuguese-language users. The affected code at html/atendido/cadastro_atendido_parentesco_pessoa_nova.php directly interpolated the value of $_GET['idatendido'] into the value attribute of a hidden <input> element without output encoding, so a URL such as one supplying a quote-breaking payload would terminate the attribute and inject arbitrary markup or script into the rendered page. The upstream fix commit e39390f2c0172e8a127b9437e15e71ac4a0e77cf wraps that value in htmlspecialchars(), applying PHP's HTML entity encoding so the payload is rendered as inert text. The vulnerable component is a managed-area PHP endpoint in the atendido (assisted person) module handling relationship registration, which is why the CVSS vector requires low privileges (PR:L) in addition to user interaction (UI:R); the scope change (S:C) and low C/I with no availability impact reflect that the script runs in the victim's browser session rather than compromising the server. The CPE cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:* confirms all released WeGIA builds before 3.5.1 are in scope.

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

Network-reachable endpoint behind a login (PR:L) with a crafted link clicked by a victim (UI:R); reflected script crosses into the browser context (S:C) for limited C/I impact, no availability effect.

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:L/VI:L/VA:N/SC:N/SI:N/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. Prior to 3.5.1, a Reflected Cross-Site Scripting (XSS) vulnerability was identified in the /html/atendido/cadastro_atendido_parentesco_pessoa_nova.php endpoint of the WeGIA application. This vulnerability allows attackers to inject malicious scripts in the idatendido parameter. This vulnerability is fixed in 3.5.1.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
niche open-source institutional manager for Portuguese-language organizations
Exploit
POC
Public exploit code exists
Data Quality
5 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