---
id: "CVE-2026-61673"
kind: "vulnerability"
aliases: ["CVE-2026-61673"]
title: "WeGIA: stored script injection in memorandum threads hijacks sessions"
severity: "medium"
cvss: 6.3
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["other", "php", "self-hosted", "wegia"]
not_affected_if: ["memorando-module-unused", "version-3.8.7-or-later"]
published_at: "2026-10-29T22:17:05+00:00"
first_seen_at: "2026-10-29T22:27:07+00:00"
updated_at: "2026-10-29T22:28:50+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-61673", "first_seen_at": "2026-10-29T22:27:07+00:00"}]
---

# WeGIA: stored script injection in memorandum threads hijacks sessions

WeGIA, a web manager for charitable institutions, stores memorandum dispatch text that is later decoded and inserted into the page without escaping. A user who can submit a dispatch can run JavaScript in the browser of anyone who views that memorandum thread, including administrators, and steal their session tokens.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed WeGIA version and whether it is below `3.8.7`.
- Look for the file `web/html/memorando/listar_despachos.php` in the WeGIA install.
- Confirm whether the memorandum module is in use by staff accounts.

## Fix

- Upgrade WeGIA to `3.8.7` or later.

## Timeline

- 2026-10-29T22:27:07+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-61673

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
