Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with medical-record access
-
DeliverySubmit payload via metodo=alterarProntuario
-
ExploitStore script in textoProntuario field
-
ExecutionVictim opens historico_prontuarios.php
-
PersistExecute JS, steal session cookie
-
ImpactCompromise higher-privileged account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated WeGIA user who can create or access a patient's medical record, who then sends POST /controle/control.php with nomeClasse=SaudeControle, metodo=alterarProntuario, a valid id_fichamedica, and a malicious textoProntuario value (arbitrary HTML/JavaScript, e.g. <img src=x onerror=...>). Execution is deferred and requires a second user to open /html/saude/historico_prontuarios.php?id_historico=<ID>, where the unsanitized value was rendered via innerHTML. Limiting factors: low-privilege authentication with medical-record write access is mandatory (not anonymous), and victim interaction (viewing the specific patient history page) is required; impact scales with the viewing victim's privilege level. |
| Impact | Signals mostly align toward a genuine but conditional priority. The input CVSS of 8.9 (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L) is elevated largely by the scope change (S:C) typical of XSS executing in a victim's browser authority, but it still requires PR:L (an authenticated account with access to patient medical records) and UI:R (a second user must open the affected history page), so it is not a drive-by unauthenticated flaw. The vuln.today decision label is 'this_week' (not act_now/emergency), and there is no CISA KEV listing and no EPSS value supplied, so there is no evidence of active or widespread exploitation. The GitHub Security Advisory does include a concrete PoC request and payload, raising practical exploitability for anyone with the requisite low-privilege access. EPSS and KEV data are both absent from the input; this absence is not itself an error but means real-world exploitation frequency cannot be quantified. Net: a real, patchable stored-XSS priority for WeGIA operators, but gated behind authenticated record access and victim interaction rather than a mass-exploitable internet-facing bug. |
| Exploit ScenarioDerived | An attacker holding a low-privilege WeGIA account that can create or edit a patient medical record submits a malicious textoProntuario value (e.g. an img/onerror payload) via POST /controle/control.php. When a higher-privileged staff user later opens that patient's history page, the stored JavaScript executes in their browser, enabling session cookie theft and potential takeover of the more privileged account. A public PoC reference with the exact request and payload exists in the GitHub advisory, though it is not verified as a packaged working exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 29, 2026
Stored cross-site scripting in WeGIA (LabRedesCefetRJ) before version 3.8.7 allows an authenticated user who can create or edit a patient's medical record to plant arbitrary HTML/JavaScript in the textoProntuario field via POST /controle/control.php; the payload then executes in the browser of any other user who opens /html/saude/historico_prontuarios.php?id_historico=<ID>. Consequences are session cookie theft and possible account compromise that scales with the viewing victim's privileges. Exploitation is conditional: low-privilege authentication with medical-record write access is mandatory and a second user must view the affected history page, so the published CVSS of 8.9 is tempered by that prerequisite and the required user interaction. A public proof-of-concept reproduction is published in the project's GitHub security advisory; it has not been independently verified here as working exploit code, and there is no CISA KEV confirmation of active exploitation.
RemediationAI
Vendor-released patch: upgrade to WeGIA 3.8.7 (release https://github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.8.7), which addresses the issue via commit 52eeca63e9df1298c6f661d55aa26dc9eb0f564d replacing the innerHTML assignment with textContent in web/html/saude/historico_prontuarios.php; full details are in advisory GHSA-qm7p-cprp-f974. Because the disclosure describes no separate vendor workaround, the practical compensating control is to restrict who can create or edit medical records (alterarProntuario) to trusted, minimally-scoped staff accounts, since exploitation mandates an authenticated user with that write capability and only executes when another user opens the targeted history page; the trade-off is reduced clinical workflow flexibility for lower-privileged staff. Until patched, also consider limiting exposure of the saude/historico_prontuarios.php page to accounts whose sessions would not be costly to lose, and treat the stored record text as untrusted, noting the vendor's chosen fix applies output encoding at the rendering sink rather than input sanitization.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
WeGIA is a PHP web application for charitable institutions; requests are dispatched through a front controller (controle/control.php) using nomeClasse/metodo parameters, here SaudeControle::alterarProntuario, which persists the free-text medical record field textoProntuario to the database. The sink is a client-side DOM write in web/html/saude/historico_prontuarios.php, where the stored description was assigned through tdDescricao.innerHTML, so markup and event handlers such as <img src=x onerror=...> were parsed as HTML rather than displayed as text, making this a CWE-79 cross-site scripting issue with a database-persisted (stored) payload. The upstream fix in commit 52eeca63e9df1298c6f661d55aa26dc9eb0f564d changes that single line from innerHTML to textContent, i.e. output encoding applied at the DOM sink rather than input filtering. The vulnerable component is tracked as CPE cpe:2.3:a:labredescefetrj:wegia:*:*:*:*:*:*:*:* (PHP-tagged), and the trigger depends on a valid id_fichamedica the attacker can write to, plus a later page view by a different user.
Know when Wegia gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L
Authenticated record-write access gives PR:L and a viewing victim gives UI:R; stored XSS crosses into the victim's browser authority (S:C) with session-theft confidentiality impact (C:H), limited integrity, no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
Stored cross-site scripting (CWE-79) in WeGIA's medical-record history feature.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A stored cross-site scripting vulnerability in WeGIA, an open-source healthcare records system used by LabRedesCefetRJ, enables authenticated users with medical-record write access to inject malicious scripts that execute in the browsers of colleagues viewing patient history pages. This could lead to session hijacking and unauthorized access to sensitive patient data, though exploitation requires two conditions: a low-privileged authenticated attacker and a victim viewing the compromised page. Leadership should prioritize remediation due to the potential for data breaches and regulatory non-compliance in healthcare settings.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Critical OS Command Injection vulnerability in WeGIA (a web management system for charitable institutions) versions prio
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Rated critical
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is a web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
EUVD-2026-113400
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB