{
  "id": "CVE-2026-61719",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-61719",
  "published_at": "2026-10-29T21:26:27.288Z",
  "title": "WeGIA: Stored Cross-Site Scripting (XSS) in \"historico_prontuarios.php\" via \"textoProntuario\" Field",
  "vendor": "LabRedesCefetRJ",
  "product": "WeGIA",
  "cvss": {
    "score": 8.9,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-79",
  "cvss_by_source": {
    "cna": 8.9
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "LabRedesCefetRJ",
        "product": "WeGIA",
        "ranges": [
          "\u003c 3.8.7"
        ],
        "fixed_in": [
          "3.8.7"
        ]
      }
    ],
    "upgrade": [
      "Upgrade WeGIA to 3.8.7 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-qm7p-cprp-f974"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/LabRedesCefetRJ/WeGIA/commit/52eeca63e9df1298c6f661d55aa26dc9eb0f564d"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.8.7"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
