Stored cross-site scripting in WeGIA patient medical record field
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
LabRedesCefetRJ WeGIA before 3.8.7 has a stored cross-site scripting flaw (CWE-79) in the textoProntuario field of its medical record history page. The field accepts arbitrary HTML or JavaScript without sanitization. An attacker with low privileges who can access a patient's medical record can make the script run in the browser of a user who views it, enabling session cookie theft and possible account compromise.
Written with Claude Haiku 5.5 from the sources below · 2026-11-03
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
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 LabRedesCefetRJ WeGIA to version 3.8.7, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-03
- Fix · CNA WeGIA (LabRedesCefetRJ) Fixed in 3.8.7
Timeline
- 2026-10-29 Threatist record created from CVE-2026-61719
- 2026-10-31 Priority changed: MEDIUM → LOW
- 2026-11-03 CISA SSVC decision points changed
- 2026-11-03 Priority changed: LOW → HIGH
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