CVE-2026-61673: WeGIA: Stored DOM XSS in listar_despachos.php Allows Account Takeover

Published Oct 29, 2026
·
Updated

WeGIA is a web manager for charitable institutions. Prior to 3.8.7, a stored DOM cross-site scripting vulnerability in web/html/memorando/listardespachos.php results from unsafe handling of the texto field. The affected flow spans web/controle/memorando/DespachoControle.php and web/dao/memorando/DespachoDAO.php: FILTERSANITIZESPECIALCHARS is applied during storage, but htmlentitydecode() 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/listardespachos.php with idmemorando. 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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade WeGIA to a version that resolves this vulnerability.

    Fixed in 3.8.7

Event History

Oct 29, 2026
CVE Published
via MITRE·09:22 PM
Data Sourced
via MITRE·09:22 PM
DescriptionWeakness
Data Sourced
via OSV·09:22 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

WeGIA deployments running versions before 3.8.7 are affected when users can submit memorandum dispatches. Users who view a malicious memorandum thread are exposed to JavaScript executing in their authenticated browser session, including administrators.

2

What does an attacker need to exploit it?

The attacker needs the ability to submit a memorandum dispatch through /controle/control.php using DespachoControle with metodo=incluir. They can place malicious content in the texto field, which is stored and later rendered in the memorandum thread.

3

Does exploitation require a victim to take an action?

Yes. The stored payload executes automatically when another user views the affected memorandum thread through /html/memorando/listar_despachos.php with id_memorando. No additional interaction beyond opening the thread is described.

4

How can I determine whether my deployment may be affected?

Check whether the installed WeGIA version is earlier than 3.8.7. Also review memorandum dispatch records for untrusted or unexpected HTML or JavaScript in the texto field, especially in threads viewed by privileged users.

5

What should be done if patching cannot happen immediately?

No interim mitigation is provided in the available data. Prioritize preventing untrusted users from submitting memorandum dispatches and limit access to affected memorandum threads until the deployment can be updated to 3.8.7.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203