CVE-2022-4727 OpenMRS Appointment Scheduling Module Notes AppointmentRequest.java getNotes cross site scripting

Low 3.5 Published Updated

Remote attackers can inject malicious scripts via the notes field in the OpenMRS Appointment Scheduling Module, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-4727?

CVE-2022-4727 is a low-severity cross-site scripting vulnerability in OpenMRS Appointment Scheduling Module, published on 24 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79, CWE-707

Which versions are affected by CVE-2022-4727?

It affects 1 product.

Products include Openmrs Appointment Scheduling Module.

How do I fix CVE-2022-4727?

No fix has been published for CVE-2022-4727 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-4727 being exploited?

There is no known exploitation of CVE-2022-4727 in the wild and no public exploit code.

Sources

Also known as GHSA-hc4w-25w5-j59v.

Is CVE-2022-4727 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free