Skip to main content

WeGIA CVE-2026-61673

| EUVDEUVD-2026-113398 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-10-29 GitHub_M
6.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as low-privileged WeGIA user
  2. Delivery
    Submit memorandum dispatch with stored XSS payload via DespachoControle incluir
  3. Exploit
    Administrator opens the memorandum thread
  4. Execution
    Injected script exfiltrates admin PHPSESSID cookie
  5. Impact
    Replay token to hijack session and take over account

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

Requires an authenticated WeGIA account with privilege to submit a memorandum dispatch via POST /controle/control.php using nomeClasse=DespachoControle, metodo=incluir, modulo=memorando, with the payload placed in the 'texto' field for a given id_memorando (PR:L). The stored payload executes only when a second user - ideally an administrator - subsequently views that specific memorandum thread at /html/memorando/listar_despachos.php?id_memorando=N (UI:P, the required victim interaction). Exploitation is limited to WeGIA versions <= 3.8.6; it does not work remotely-unauthenticated and depends on a privileged victim opening the attacker-chosen thread. The trigger is fully described in the sources: html_entity_decode() re-expands the sanitized entities server-side and jQuery .html() injects them into the DOM.

Impact

This is a genuine but moderate-priority issue, not a top-tier emergency. The supplied CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N, base 6.3, medium) shows a network-reachable, low-complexity flaw that nevertheless requires attacker privileges (PR:L - the attacker must already hold an account able to submit a memorandum dispatch) and passive victim interaction (UI:P - a second user, ideally an administrator, must open the affected memorandum thread). The high subsequent-system impact (SC:H/SI:H) reflects that stolen admin PHPSESSID tokens lead to full account takeover, which is the real driver of risk here. It is NOT in CISA KEV, so there is no confirmed active exploitation. No EPSS score was provided in the input, so exploitation probability cannot be quantified - state this gap explicitly rather than assuming. A detailed public PoC (full HTTP request plus screenshots claiming successful admin-session exfiltration) is present in the GHSA advisory, which raises practical exploitability above a purely theoretical XSS. The vuln.today decision label is 'this_month' (not act_now or emergency), consistent with a medium-severity, authenticated, interaction-dependent stored XSS in a low-footprint product. Net: patch on a normal cycle; the authentication requirement, the need for a victim to view the thread, and the product's narrow deployment keep this from being a widespread, drive-by threat.

Exploit ScenarioDerived

A low-privileged WeGIA user submits a memorandum dispatch whose 'texto' field contains an HTML/JS payload (e.g. an img onerror handler that POSTs document.cookie to an attacker server). When an administrator later opens that memorandum thread, the stored script runs in their browser, exfiltrating the admin PHPSESSID, which the attacker replays to hijack the privileged session. A working PoC with this exact flow is published in the GHSA advisory, including screenshots of successful admin-session theft and subsequent access to authenticated endpoints.

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

Stored DOM-based cross-site scripting in WeGIA (all versions through 3.8.6) lets an authenticated user who can post a memorandum dispatch plant HTML/JavaScript that executes in another user's browser when that user opens the affected memorandum thread, enabling theft of the administrator PHPSESSID and privileged account takeover. The project's GitHub advisory documents a public proof-of-concept request plus screenshots of a successful admin session hijack; the vulnerability is fixed in 3.8.7. Exploitation requires a low-privileged authenticated account and a victim - ideally an administrator - viewing the crafted thread; there is no confirmed active exploitation (not in CISA KEV), and the issue is assessed as a moderate-priority, remediate-this-month item rather than an emergency.

RemediationAI

Vendor-released patch: upgrade WeGIA to version 3.8.7, which removes the html_entity_decode() call in DespachoDAO::listarTodos() and replaces the jQuery .html() sink in listar_despachos.php with .text() (commit 9524556c5940149e20cea389d2966dd010d3b5af); release notes are at https://github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.8.7 and the advisory at https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-83p7-cx5x-7g34. The vendor documents no separate workaround - updating is the only complete fix - so organizations that cannot move to 3.8.7 immediately should backport those two line-level changes, since leaving either side of the decode-then-inject chain in place keeps stored dispatch text executable. Because exploitation depends on a privileged user opening an attacker-planted thread, restricting dispatch-posting rights to accounts that genuinely need them and treating administrator review of memorandum threads as a trust boundary will reduce, but not eliminate, exposure until the patch is applied.

Affected VersionsENISA

WeGIA < 3.8.7

Affected Packages

euvd wegia fix: 3.8.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

WeGIA is a PHP web application for charitable institutions, and this finding is a CWE-79 stored/DOM cross-site scripting flaw rooted in a broken sanitization round-trip rather than a missing filter. Dispatch text is sanitized at write time with FILTER_SANITIZE_SPECIAL_CHARS (entity-encoding it), stored by DespachoDAO, and then re-expanded server-side in DespachoDAO::listarTodos() via html_entity_decode($linha['texto']) inside web/dao/memorando/DespachoControle.php's data path. The decoded string is passed to web/html/memorando/listar_despachos.php, where jQuery's .html(item.texto) performs a DOM injection, so the sanitized payload becomes live markup and script in the victim's browser. Because the sink sits in the victim's session context and the payload is persisted, the CVSS 4.0 vector scores scope change (SC:H) with high subsequent confidentiality/integrity impact for the victim's browser, while the attacker's own direct impact is limited; the independent assessment maps this to CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. The published fix commit 9524556 removes the html_entity_decode() call and switches the renderer from .html() to .text(), closing both halves of the decode-then-inject chain.

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

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N
vuln.today AI 5.4 MEDIUM

PR:L because submitting a dispatch needs an authenticated account; UI:R because a victim must view the thread; S:C and C:L/I:L as attacker script runs in the victim's admin context to steal the session; 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:L/VI:L/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Oct 29, 2026 - 22:03 EUVD

DescriptionCVE.org

WeGIA is a web manager for charitable institutions. Prior to 3.8.7, a stored DOM cross-site scripting vulnerability in web/html/memorando/listar_despachos.php results from unsafe handling of the texto field. The affected flow spans web/controle/memorando/DespachoControle.php and web/dao/memorando/DespachoDAO.php: FILTER_SANITIZE_SPECIAL_CHARS is applied during storage, but html_entity_decode() later decodes the stored content and jQuery .html() inserts the result into the DOM. An attacker able to submit a memorandum dispatch through /controle/control.php using DespachoControle and metodo=incluir can store malicious HTML or JavaScript. The code executes automatically when another user views the memorandum thread through /html/memorando/listar_despachos.php with id_memorando. This permits arbitrary JavaScript execution, theft of administrator PHPSESSID session tokens, privileged session hijacking, account takeover, and unauthorized access to privileged or internal functionality. This issue is fixed in version 3.8.7.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Rare
niche academic open-source charity-management app, tiny deployment footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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 No
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
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
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.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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