Skip to main content

WeGIA CVE-2025-62358

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-10-13 security-advisories@github.com
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious log parameter URL
  2. Delivery
    Phish victim into clicking link
  3. Exploit
    Server reflects unescaped base64-decoded input
  4. Execution
    JavaScript executes in victim browser
  5. Impact
    Steal session or perform 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 targets the 'log' GET parameter of html/configuracao/configuracao_geral.php, which is base64-decoded and rendered inside a <pre> tag without HTML escaping (fixed by adding htmlspecialchars() in the displaySuccess/displayWarning/displayError message helpers in html/geral/msg.php). The payload must be base64-encoded to pass through the base64_decode() call. The primary limiting factor is required user interaction (UI:R): the victim must open the attacker-supplied link, so exploitation depends on successful social engineering. No authentication is required to craft the link (PR:N), and the affected code path is present in default WeGIA installations prior to 3.5.1.

Impact

This is a moderate-severity Reflected XSS (CWE-79) with a balanced, non-alarming real-world risk profile. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, base 6.1) indicates network-reachable, low-complexity, unauthenticated exploitation but critically requires user interaction (UI:R) - the victim must open an attacker-crafted link, which is the dominant limiting factor. The scope change (S:C) reflects script execution crossing from the server-rendered page into the victim's browser context, consistent with the limited C:L/I:L impact of reflected XSS. Exploitation signals are mixed but coherent: a public exploit exists (GHSA-g6hr-2rhx-f8q4) yet EPSS is low at 0.26% (16th percentile) and the CVE is NOT in CISA KEV, so there is publicly available exploit code but no evidence of active exploitation. These signals do not conflict - a low EPSS alongside available POC code is typical for a niche product requiring user interaction. Bottom line: a legitimate bug worth patching, but not an emergency; prioritize behind unauthenticated RCEs and KEV-listed issues. No SSVC decision data was provided in the input.

Exploit ScenarioDerived

An attacker crafts a URL to configuracao_geral.php with a malicious payload in the base64-encoded 'log' parameter and delivers it to a WeGIA user (e.g., an institution administrator) via phishing or a chat message. When the victim opens the link, the decoded, unescaped value is reflected into a <pre> block and the injected JavaScript executes in their browser, enabling session/cookie theft or actions in the WeGIA interface. A public POC exists via the GitHub security advisory, lowering the skill barrier.

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

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

Alert me

AnalysisAIv1 – Oct 08, 2026

Reflected cross-site scripting (XSS) in WeGIA versions prior to 3.5.1 allows unauthenticated attackers to inject arbitrary JavaScript that executes in a victim's browser when the victim opens a crafted link, enabling session theft, credential harvesting, or page defacement within the application's origin. The flaw resides in the base64-decoded 'log' GET parameter processed by html/configuracao/configuracao_geral.php and rendered unescaped inside a <pre> tag via the message helpers in html/geral/msg.php. Publicly available exploit code exists and the vendor has released a fix in 3.5.1; EPSS is low at 0.26% (16th percentile) and there is no confirmed active exploitation (CISA KEV). Exploitation requires user interaction (UI:R) - the victim must follow an attacker-supplied link - so real-world risk is moderate and dependent on social engineering.

RemediationAI

Upgrade WeGIA to version 3.5.1 or later; this is the exact version containing the vendor-released patch, applied via commit eddb9b134883cac5d0de770bfcca6e05bfcbd684, which introduces htmlspecialchars() around the 'log' value in html/geral/msg.php. The vendor advisory at https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-g6hr-2rhx-f8q4 and the patch commit at https://github.com/LabRedesCefetRJ/WeGIA/commit/eddb9b134883cac5d0de770bfcca6e05bfcbd684 provide the authoritative fix details. If upgrade cannot be performed immediately, apply a targeted virtual patch or WAF rule that rejects or encodes requests whose 'log' query parameter contains HTML-significant characters after base64 decoding, and deploy a restrictive Content-Security-Policy that disallows inline script; both mitigations reduce exploitability but carry the side effect of potentially breaking legitimate log-message display and may generate false positives in application workflows. Because the attack is delivered as a crafted link and requires user interaction (UI:R), also train users not to open unsolicited WeGIA links and consider referrer/URL filtering at the perimeter as a compensating control.

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 ('Web Manager for Institutions') aimed primarily at Portuguese-speaking organizations. The vulnerability is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation / Reflected XSS). In html/geral/msg.php, the displayMsg() function reads $_GET['log'], applies base64_decode() to it, and passes the result into displaySuccess(), displayWarning(), or displayError(), which interpolated the value directly into a '<pre>$log</pre>' block without output encoding. Because configuracao_geral.php reaches this code path, an attacker can supply a base64-encoded JavaScript payload in the 'log' parameter; the browser then parses it as HTML/JS within the trusted origin. The upstream commit eddb9b134883cac5d0de770bfcca6e05bfcbd684 fixes this by wrapping the value with htmlspecialchars() before output. The CPE cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:* indicates the vulnerable code is present across WeGIA releases up to the 3.5.1 fix, and the CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) confirms a network-reachable, unauthenticated attack that changes the scope of impact (S:C) and requires victim interaction (UI:R).

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 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Remotely reachable reflected XSS needs no auth (PR:N) but requires the victim to click a crafted link (UI:R); script executes in the browser (S:C) with limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/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
None
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, the log parameter in configuracao_geral.php is vulnerable to Reflected Cross-Site Scripting (XSS). An attacker can inject arbitrary JavaScript, which executes in the victim’s browser. This vulnerability is fixed in 3.5.1.

Threat Intelligence Overview

EPSS Score
0.3%
Top 84% exploitable
Prevalence
Low
niche open-source institution manager, Portuguese-focused, minimal enterprise footprint
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.3%
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

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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