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

DevFeed: [CVE-2026-61719 - WeGIA: Stored Cross-Site Scripting (XSS) in "historico\_prontuarios.php" via "textoProntuario" Field](<https://devfeed.tech/articles/cve-2026-61719-wegia-stored-cross-site-scripting-xss-in-historico-prontuarios-php-via-textoprontuario-field-106986.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-61719>)

Author: CVEFEED.io; github.com

Published: 2026-10-29T22:17:05Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [XSS](<https://devfeed.tech/topics/xss.md>), [Credential theft](<https://devfeed.tech/topics/credential-theft.md>), [account takeover](<https://devfeed.tech/topics/account-takeover.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [browser](<https://devfeed.tech/tags/browser.md>), [compromise](<https://devfeed.tech/tags/compromise.md>), [cross-site-scripting](<https://devfeed.tech/tags/cross-site-scripting.md>), [cve-2026-61719](<https://devfeed.tech/tags/cve-2026-61719.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [html](<https://devfeed.tech/tags/html.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [medical](<https://devfeed.tech/tags/medical.md>), [php](<https://devfeed.tech/tags/php.md>), [stored](<https://devfeed.tech/tags/stored.md>), [theft](<https://devfeed.tech/tags/theft.md>), [version](<https://devfeed.tech/tags/version.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>), [wegia](<https://devfeed.tech/tags/wegia.md>), [xss](<https://devfeed.tech/tags/xss.md>)

## AI overview

Before WeGIA 3.8.7, the `textoProntuario` field in `saude/historico_prontuarios.php` accepts unsanitized HTML or JavaScript. An attacker who can create or access a patient's medical record can submit the content through `POST /controle/control.php` using `SaudeControle` and `alterarProntuario`. When another user views the stored record, the script runs in that user's browser, potentially enabling session cookie theft and account compromise depending on their privileges. The issue is fixed in version 3.8.7.

## Source excerpt

CVE ID :CVE-2026-61719 Published : Oct. 29, 2026, 10:17 p.m. | 1 hour, 5 minutes ago 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. Severity: 8.9 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...