# CVE-2021-4291: OpenMRS Admin UI Module location.gsp cross site scripting

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.5
- **CVSS:** 3.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.98% (percentile 61, 2026-11-26)
- **CWE:** CWE-79
- **Published:** 2022-12-27T22:54:46.691Z
- **Modified:** 2026-06-17T04:19:26.230Z

## Who should check

- Anyone running OpenMRS Admin UI Module 1.0; 1.1; 1.2; 1.3; 1.4; 1.5

## Description

A vulnerability was found in OpenMRS Admin UI Module up to 1.5.x. It has been declared as problematic. This vulnerability affects unknown code of the file omod/src/main/webapp/pages/metadata/locations/location.gsp. The manipulation leads to cross site scripting. The attack can be initiated remotely. Upgrading to version 1.6.0 is able to address this issue. The name of the patch is a7eefb5f69f6c50a3bffcb138bb8ea57cb41a9b6. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216916.

## Affected and fixed versions

- OpenMRS Admin UI Module: 1.0; 1.1; 1.2; 1.3; 1.4; 1.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-4291. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-4291.md
Affected: OpenMRS Admin UI Module 1.0; 1.1; 1.2; 1.3; 1.4; 1.5
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for OpenMRS Admin UI Module: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-4291 being exploited?

There is no confirmed exploitation: CVE-2021-4291 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.98% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-4291?

Low: CVSS 3.5 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2021-4291?

OpenMRS Admin UI Module 1.0; 1.1; 1.2; 1.3; 1.4; 1.5.

### Is there a fix for CVE-2021-4291?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-4291?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/openmrs/openmrs-module-adminui/pull/61>
- patch: <https://github.com/openmrs/openmrs-module-adminui/commit/a7eefb5f69f6c50a3bffcb138bb8ea57cb41a9b6>
- patch: <https://github.com/openmrs/openmrs-module-adminui/releases/tag/1.6.0>
- other: <https://vuldb.com/?id.216916>
- other: <https://vuldb.com/?ctiid.216916>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-4291>

HTML: <https://flawdb.com/CVE-2021-4291> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-4291>
