# CVE-2021-25922: In OpenEMR, versions 4.2.0 to 6.0.0 are vulnerable to Reflected Cross-Site-Scripting (XSS) due to user input not being validated properly.

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.84%, higher than 58% of CVEs (2026-12-01)
- Published: 2021-03-22T19:39:21.000Z
- Modified: 2026-06-17T03:42:35.360Z
- Weaknesses: CWE-79
- Assigned by: Mend

## Description

In OpenEMR, versions 4.2.0 to 6.0.0 are vulnerable to Reflected Cross-Site-Scripting (XSS) due to user input not being validated properly. An attacker could trick a user to click on a malicious url and execute malicious code.

(As written by CVE List.)

## Affected

- openemr: 4.2.0, 4.2.0.3, 4.2.1, 4.2.2, 5.0.0, 5.0.0.5, 5.0.0.6, 5.0.1, 5.0.1.1, 5.0.1.2, 5.0.1.3, 5.0.1.4, 5.0.1.5, 5.0.1.6, 5.0.1.7, 5.0.2, 5.0.2.1, 5.0.2.2, 5.0.2.3, 5.0.2.4, 6.0.0
- open-emr openemr: from 4.2.0 up to 6.0.0

## Every score

- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/openemr/openemr/commit/0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f> (patch, third-party-advisory)
- <https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25922> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-25922](https://www.cve.org/CVERecord?id=CVE-2021-25922), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-25922](https://nvd.nist.gov/vuln/detail/CVE-2021-25922), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25922 · Whole record: https://cve.day/CVE-2021-25922.json · Rebuilt by cve.day 2026-11-25T22:58:00.365Z
