Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged WeGIA user
-
DeliverySubmit memorandum dispatch with stored XSS payload via DespachoControle incluir
-
ExploitAdministrator opens the memorandum thread
-
ExecutionInjected script exfiltrates admin PHPSESSID cookie
-
ImpactReplay 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Critical OS Command Injection vulnerability in WeGIA (a web management system for charitable institutions) versions prio
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Rated critical
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is a web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
EUVD-2026-113398
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB