CVE-2022-4727

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-4727
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-4727.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-4727
Published
2022-12-27T15:15:12Z
Modified
2025-10-15T14:14:39.198512Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
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.

References

Affected packages

Git / github.com/openmrs/openmrs-module-appointmentscheduling

Affected ranges

Type
GIT
Repo
https://github.com/openmrs/openmrs-module-appointmentscheduling
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

0.*

0.2
0.3
0.3.1
0.31

1.*

1.0
1.1
1.10.0
1.11.0
1.12.0
1.13.0
1.14.0
1.15.0
1.16.0
1.2
1.4
1.5
1.6
1.7.0
1.8.0
1.9.0

appointmentscheduling-1.*

appointmentscheduling-1.3

Database specific

vanir_signatures

[
    {
        "target": {
            "file": "api/src/test/java/org/openmrs/module/appointmentscheduling/api/AppointmentRequestServiceTest.java"
        },
        "source": "https://github.com/openmrs/openmrs-module-appointmentscheduling/commit/2ccbe39c020809765de41eeb8ee4c70b5ec49cc8",
        "deprecated": false,
        "id": "CVE-2022-4727-615c68b6",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "307830179989367849564816026687516021598",
                "236904747671926098855753581823035988512",
                "306501636670341761148908891087479644774",
                "283061178932505512113781653650792774663",
                "315441312634776959451794691942914203572"
            ],
            "threshold": 0.9
        }
    },
    {
        "target": {
            "function": "getAppointmentRequest_shouldGetCorrectAppointmentRequest",
            "file": "api/src/test/java/org/openmrs/module/appointmentscheduling/api/AppointmentRequestServiceTest.java"
        },
        "source": "https://github.com/openmrs/openmrs-module-appointmentscheduling/commit/2ccbe39c020809765de41eeb8ee4c70b5ec49cc8",
        "deprecated": false,
        "id": "CVE-2022-4727-d3bd5dd1",
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "length": 1525.0,
            "function_hash": "41070286182730959937770345397323474238"
        }
    },
    {
        "target": {
            "file": "api/src/main/java/org/openmrs/module/appointmentscheduling/AppointmentRequest.java"
        },
        "source": "https://github.com/openmrs/openmrs-module-appointmentscheduling/commit/2ccbe39c020809765de41eeb8ee4c70b5ec49cc8",
        "deprecated": false,
        "id": "CVE-2022-4727-f3993683",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "78212408260596301693272410901565651438",
                "175094667580349194511892677095501021744",
                "337257576580962160737913416199092306935",
                "19835352581967842415735709705119964433",
                "24389523763362928328511963473827145257",
                "13771223989870461215404047232607954433",
                "298747755343340715887030380282094554434",
                "253778214058170653554736400160052920606"
            ],
            "threshold": 0.9
        }
    }
]