Skip to main content

WeGIA EUVDEUVD-2026-113400

| CVE-2026-61719 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-10-29 GitHub_M
8.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with medical-record access
  2. Delivery
    Submit payload via metodo=alterarProntuario
  3. Exploit
    Store script in textoProntuario field
  4. Execution
    Victim opens historico_prontuarios.php
  5. Persist
    Execute JS, steal session cookie
  6. Impact
    Compromise 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

WeGIA < 3.8.7

Affected Packages

euvd wegia fix: 3.8.7

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

Vendor (GitHub_M) PRIMARY 8.9 HIGH
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L
vuln.today AI 7.6 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch available
Oct 29, 2026 - 22:03 EUVD
CVE Published
Oct 29, 2026 - 21:26 cve.org
HIGH 8.9

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
niche open-source manager for charitable institutions, minimal enterprise footprint
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Wegia

View all
CVE-2025-50201 CRITICAL POC
9.8 Jun 19

Critical OS Command Injection vulnerability in WeGIA (a web management system for charitable institutions) versions prio

CVE-2025-27140 CRITICAL POC
10.0 Feb 24

WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-26613 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-55169 CRITICAL POC
10.0 Aug 12

WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Rated critical

CVE-2025-30364 CRITICAL POC
10.0 Mar 27

WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-46828 CRITICAL POC
10.0 May 07

WeGIA is a web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-26612 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26617 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26611 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26609 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26608 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26607 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy