{"id":"CVE-2021-40374","details":"A stored cross-site scripting (XSS) vulnerability was identified in Apperta Foundation OpenEyes 3.5.1. Updating a patient's details allows remote attackers to inject arbitrary web script or HTML via the Address1 parameter. This JavaScript then executes when the patient profile is loaded, which could be used in a XSS attack.","modified":"2026-07-09T05:45:34.769867Z","published":"2022-04-06T02:15:08.343Z","references":[{"type":"ADVISORY","url":"https://openeyes.apperta.org/"},{"type":"EVIDENCE","url":"https://github.com/DCKento/CVE-2021-40374"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/appertafoundation/openeyes","events":[{"introduced":"c079383d2033404b8a5af7c2f552843444f3440a"},{"last_affected":"c079383d2033404b8a5af7c2f552843444f3440a"}],"database_specific":{"cpe":"cpe:2.3:a:apperta:openeye:3.5.1:*:*:*:*:*:*:*","extracted_events":[{"introduced":"3.5.1"},{"last_affected":"3.5.1"}],"source":"CPE_STRING"}}],"versions":["3.5.1","v3.5.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40374.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}