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.
{
"cna_assigner": "VulDB",
"cwe_ids": [
"CWE-707"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4727.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "1.0"
},
{
"last_affected": "1.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.1"
},
{
"last_affected": "1.1"
}
],
"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"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"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"
},
{
"range": [
{
"introduced": "1.7"
},
{
"last_affected": "1.7"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.8"
},
{
"last_affected": "1.8"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.9"
},
{
"last_affected": "1.9"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.10"
},
{
"last_affected": "1.10"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"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"
},
{
"range": [
{
"introduced": "1.14"
},
{
"last_affected": "1.14"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.15"
},
{
"last_affected": "1.15"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "1.16"
},
{
"last_affected": "1.16"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"original_tag": "1.17.0",
"range": [
{
"fixed": "c9880a73d998002627e4d841aaa729405298e321"
}
],
"source": "REFERENCES_TAG"
},
{
"range": [
{
"fixed": "2ccbe39c020809765de41eeb8ee4c70b5ec49cc8"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-4727.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"307830179989367849564816026687516021598",
"236904747671926098855753581823035988512",
"306501636670341761148908891087479644774",
"283061178932505512113781653650792774663",
"315441312634776959451794691942914203572"
],
"threshold": 0.9
},
"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"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "41070286182730959937770345397323474238",
"length": 1525
},
"id": "CVE-2022-4727-d3bd5dd1",
"signature_type": "Function",
"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": {
"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"
}
}
]
"2026-10-28T10:31:11Z"