Stored DOM cross-site scripting in WeGIA memorandum threads
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
WeGIA, a web manager for charitable institutions, is affected before 3.8.7. A stored DOM cross-site scripting flaw (CWE-79) in listar_despachos.php occurs because content saved with FILTER_SANITIZE_SPECIAL_CHARS is later decoded with html_entity_decode() and inserted into the page with jQuery .html(). An attacker who can submit a memorandum dispatch can store malicious HTML or JavaScript that runs automatically when another user views the memorandum thread. This can lead to theft of administrator PHPSESSID session tokens and account takeover, and CISA does not list it in KEV.
Written with Claude Haiku 5.5 from the sources below · 2026-11-04
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| LabRedesCefetRJ | WeGIA | before 3.8.7 | 3.8.7 | Patch available | CNA |
- WeGIA VendorLabRedesCefetRJ Affected before 3.8.7 Fixed in 3.8.7 Patch available CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:* | — | — | LabRedesCefetRJ |
- cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:* Versions — — ·LabRedesCefetRJ
Remediation
Upgrade WeGIA to version 3.8.7, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-04
- Fix · CNA WeGIA (LabRedesCefetRJ) Fixed in 3.8.7
Timeline
- 2026-10-29 Threatist record created from CVE-2026-61673
- 2026-10-31 Priority changed: MEDIUM → LOW
- 2026-11-04 CISA SSVC decision points changed
- 2026-11-04 Priority changed: LOW → MEDIUM
References
More LabRedesCefetRJ vulnerabilities
- TI-2026-74469 SQL injection in WeGIA lets remote attackers read and modify data CVSS 3.1CRITICAL 9.8
- TI-2026-24448 WeGIA has a Time-Based Blind SQL Injection in remover_produto_ocultar.php CVSS 3.1CRITICAL 9.8
- TI-2026-22685 WeGIA Vulnerable to Authentication Bypass via `extract($_REQUEST)` CVSS 3.1CRITICAL 9.8
- TI-2026-22683 WeGIA Vulnerable to Remote Code Execution (RCE) via OS Command Injection CVSS 3.1CRITICAL 10.0
- TI-2026-22682 WeGIA lacks authentication verification in adicionar_tipo_docs_atendido.php CVSS 3.1CRITICAL 9.8
- TI-2025-38628 WeGIA SQL Injection via 'id_dependente' param at endpoint `/html/funcionario/dependente_documento.php` CVSS 4.0CRITICAL 9.4
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences