{"id":"CVE-2022-4727","summary":"OpenMRS Appointment Scheduling Module Notes AppointmentRequest.java getNotes cross site scripting","details":"A vulnerability, which was classified as problematic, was found in OpenMRS Appointment Scheduling Module up to 1.16.x. This affects the function getNotes of the file api/src/main/java/org/openmrs/module/appointmentscheduling/AppointmentRequest.java of the component Notes Handler. The manipulation of the argument notes leads to cross site scripting. It is possible to initiate the attack remotely. Upgrading to version 1.17.0 is able to address this issue. The name of the patch is 2ccbe39c020809765de41eeb8ee4c70b5ec49cc8. It is recommended to upgrade the affected component. The identifier VDB-216741 was assigned to this vulnerability.","modified":"2026-10-28T10:31:11.870591815Z","published":"2022-12-24T00:00:00Z","database_specific":{"cwe_ids":["CWE-707"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4727.json","cna_assigner":"VulDB"},"references":[{"type":"WEB","url":"https://github.com/openmrs/openmrs-module-appointmentscheduling/releases/tag/1.17.0"},{"type":"WEB","url":"https://vuldb.com/?id.216741"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4727.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4727"},{"type":"FIX","url":"https://github.com/openmrs/openmrs-module-appointmentscheduling/commit/2ccbe39c020809765de41eeb8ee4c70b5ec49cc8"},{"type":"FIX","url":"https://github.com/openmrs/openmrs-module-appointmentscheduling/pull/39"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openmrs/openmrs-module-appointmentscheduling","events":[{"introduced":"967ab97e0f19a24458106f41cdc1f840859d2950"},{"fixed":"c9880a73d998002627e4d841aaa729405298e321"},{"fixed":"2ccbe39c020809765de41eeb8ee4c70b5ec49cc8"}],"database_specific":{"extracted_events":[{"strategy":"StandaloneSingleVersion","range":[{"introduced":"1.0"},{"last_affected":"1.0"}],"source":"AFFECTED_FIELD"},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"1.1"},{"last_affected":"1.1"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"1.2"},{"last_affected":"1.2"}]},{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"1.3"},{"last_affected":"1.3"}]},{"range":[{"introduced":"1.4"},{"last_affected":"1.4"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"range":[{"introduced":"1.5"},{"last_affected":"1.5"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"range":[{"introduced":"1.6"},{"last_affected":"1.6"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"1.7"},{"last_affected":"1.7"}],"source":"AFFECTED_FIELD"},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"1.8"},{"last_affected":"1.8"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"1.9"},{"last_affected":"1.9"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"1.10"},{"last_affected":"1.10"}]},{"range":[{"introduced":"1.11"},{"last_affected":"1.11"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"range":[{"introduced":"1.12"},{"last_affected":"1.12"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"range":[{"introduced":"1.13"},{"last_affected":"1.13"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"1.14"},{"last_affected":"1.14"}]},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"1.15"},{"last_affected":"1.15"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"1.16"},{"last_affected":"1.16"}]},{"source":"REFERENCES_TAG","original_tag":"1.17.0","range":[{"fixed":"c9880a73d998002627e4d841aaa729405298e321"}]},{"range":[{"fixed":"2ccbe39c020809765de41eeb8ee4c70b5ec49cc8"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["1.0","1.1","1.10","1.11","1.12","1.13","1.14","1.15","1.16","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","1.16.0","1.15.0","1.14.0","1.13.0","1.12.0","1.10.0","1.9.0","1.8.0","1.7.0","appointmentscheduling-1.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-4727.json","vanir_signatures":[{"target":{"file":"api/src/test/java/org/openmrs/module/appointmentscheduling/api/AppointmentRequestServiceTest.java"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["307830179989367849564816026687516021598","236904747671926098855753581823035988512","306501636670341761148908891087479644774","283061178932505512113781653650792774663","315441312634776959451794691942914203572"]},"id":"CVE-2022-4727-615c68b6","signature_type":"Line","signature_version":"v1","source":"https://github.com/openmrs/openmrs-module-appointmentscheduling/commit/2ccbe39c020809765de41eeb8ee4c70b5ec49cc8"},{"target":{"file":"api/src/test/java/org/openmrs/module/appointmentscheduling/api/AppointmentRequestServiceTest.java","function":"getAppointmentRequest_shouldGetCorrectAppointmentRequest"},"deprecated":false,"digest":{"length":1525,"function_hash":"41070286182730959937770345397323474238"},"id":"CVE-2022-4727-d3bd5dd1","signature_type":"Function","signature_version":"v1","source":"https://github.com/openmrs/openmrs-module-appointmentscheduling/commit/2ccbe39c020809765de41eeb8ee4c70b5ec49cc8"},{"digest":{"line_hashes":["78212408260596301693272410901565651438","175094667580349194511892677095501021744","337257576580962160737913416199092306935","19835352581967842415735709705119964433","24389523763362928328511963473827145257","13771223989870461215404047232607954433","298747755343340715887030380282094554434","253778214058170653554736400160052920606"],"threshold":0.9},"id":"CVE-2022-4727-f3993683","signature_type":"Line","signature_version":"v1","source":"https://github.com/openmrs/openmrs-module-appointmentscheduling/commit/2ccbe39c020809765de41eeb8ee4c70b5ec49cc8","target":{"file":"api/src/main/java/org/openmrs/module/appointmentscheduling/AppointmentRequest.java"},"deprecated":false}],"vanir_signatures_modified":"2026-10-28T10:31:11Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"}]}