# CVE-2026-61719: WeGIA stored cross-site scripting in medical records

Source: https://junglewise.ai/threats/cve-2026-61719-wegia-is-a-web-manager-for-charitable-institutions-prior-to-3-8-7  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-29. Updated: 2026-10-29  
License: CC BY 4.0 with a link back

CVE-2026-61719 · Severity: high · CVSS 8.9 · Published 2026-10-29

WeGIA is a web-based medical records system used by charitable institutions. A stored XSS vulnerability in the patient medical record notes field allows authenticated users to inject malicious JavaScript that executes in other users' browsers when they view records, potentially enabling session hijacking and account compromise.

Technologies: [LabRedesCefetRJ WeGIA](https://junglewise.ai/threats/technologies/wegia). Vendors: [LabRedesCefetRJ](https://junglewise.ai/threats/vendors/labredescefetrj).

## Quick answers

**Is CVE-2026-61719 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-61719 being exploited in the wild.

**How severe is CVE-2026-61719?** High severity, with a CVSS score of 8.9, published 29 October 2026.

**Which products and versions are affected?** LabRedesCefetRJ WeGIA prior to 3.8.7.

**Is there a fix for CVE-2026-61719?** Yes: fixed in 3.8.7. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-61719 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-61719?** Check whether you run LabRedesCefetRJ WeGIA at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 3.8.7

## Technical details

The vulnerability is a stored cross-site scripting (XSS) flaw in the `saude/historico_prontuarios.php` file where the `textoProntuario` field fails to sanitize user input before rendering it with `innerHTML`. An authenticated attacker can submit malicious JavaScript via POST to `/controle/control.php` with parameters `nomeClasse=SaudeControle`, `metodo=alterarProntuario`, and `id_fichamedica`. The stored payload executes in victims' browsers when accessing the medical history page, enabling session cookie theft and privilege-dependent account takeover. The fix changes `innerHTML` to `textContent` to prevent script execution.

## Affected products

- LabRedesCefetRJ WeGIA prior to 3.8.7

## Timeline

- 2026-10-29: advisory

## References

- [https://github.com/LabRedesCefetRJ/WeGIA/commit/52eeca63e9df1298c6f661d55aa26dc9eb0f564d](https://github.com/LabRedesCefetRJ/WeGIA/commit/52eeca63e9df1298c6f661d55aa26dc9eb0f564d)
- [https://github.com/LabRedesCefetRJ/WeGIA/issues/1704](https://github.com/LabRedesCefetRJ/WeGIA/issues/1704)

## Related threats

- [WeGIA stored DOM cross-site scripting in memorandum dispatch](https://junglewise.ai/threats/cve-2026-61673-wegia-is-a-web-manager-for-charitable-institutions-prior-to-3-8-7)
- [WeGIA pre-installation installer command injection and SQL injection](https://junglewise.ai/threats/cve-2026-55679-wegia-is-a-web-manager-for-charitable-institutions-prior-to-3-8-6)
- [WeGIA unauthenticated database truncation in member endpoint](https://junglewise.ai/threats/cve-2026-54767-wegia-unauthenticated-database-truncation-in-member-endpoint)
- [WeGIA authorization bypass in InternoControle](https://junglewise.ai/threats/cve-2026-54671-wegia-authorization-bypass-in-internocontrole)
- [WeGIA insecure direct object reference in employee profile](https://junglewise.ai/threats/cve-2026-76634-wegia-insecure-direct-object-reference-in-employee-profile)
