CVE-2026-61673

WeGIA: Stored DOM XSS in listar_despachos.php Allows Account Takeover

Published Oct 29, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The weakness is a stored DOM cross‑site scripting flaw caused by unsafe handling of the "texto" field in WeGIA. A malicious user can submit a memorandum that contains crafted JavaScript, which is later rendered without proper encoding during the display of the memorandum thread. This allows arbitrary code to run in the victim’s browser, enabling theft of the administrator’s session cookie, hijacking the privileged session, and taking over the account. The flaw is classified as CWE‑79.

Affected Systems

The affected product is WeGIA, a web manager for charitable institutions, provided by LabRedesCefetRJ. Versions prior to 3.8.7 contain the flaw; the issue was fixed in release 3.8.7.

Risk and Exploitability

The CVSS score of 6.3 rates the vulnerability as moderate, and the EPSS score is not available, indicating no publicly reported exploitation data. It is not listed in the CISA KEV catalog. The typical attack requires the attacker to be authenticated to submit a dispatch via /controle/control.php, and the malicious payload is triggered when any user views the memorandum thread through /html/memorando/listar_despachos.php. The exploit does not rely on privileged server access, but it can be used to acquire privileged administrative privileges by hijacking an active admin session.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade WeGIA to version 3.8.7 or newer to apply the vendor’s fix for the stored DOM XSS flaw.
  • Add server‑side validation or stricter sanitization to the "texto" field so that any JavaScript or script tags are rejected or safely encoded before being stored.
  • Configure session cookies with the HttpOnly and Secure flags and consider regenerating the session identifier after privilege escalation to reduce the effectiveness of stolen session tokens.

Generated by OpenCVE AI on October 29, 2026 at 22:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Labredescefetrj
Labredescefetrj wegia
Vendors & Products Labredescefetrj
Labredescefetrj wegia
Type Values Removed Values Added
Description 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.
Title WeGIA: Stored DOM XSS in listar_despachos.php Allows Account Takeover
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 6.3, '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 4, 2026, 1:50 AM
Reserved
Jul 10, 2026, 6:25 PM
Status
Deferred
Published
Oct 29, 2026, 10:17 PM
Modified
Nov 4, 2026, 2:17 AM