Skip to content
Vulnerability Intelligence

CVE-2021-25921

MediumPublic exploit

In OpenEMR, versions 2.7.3-rc1 to 6.0.0 are vulnerable to Stored Cross-Site-Scripting (XSS) due to user input not being validated properly in the Allergies section.

Published Mar 22, 2021 · Updated Jul 8, 2026

Key Facts

Patch immediately
  • CVE-2021-25921 is a medium-severity vulnerability (CVSS 5.4 v3.1) affecting Openemr (Open-Emr).
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 91% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Openemr <=6.0.0, Openemr 6.0.0.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

CVSS v3.1

5.4

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

EPSS (30-day exploit likelihood)

91%

Higher than 99.8% of all scored CVEs

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2021-25921 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

Description

In OpenEMR, versions 2.7.3-rc1 to 6.0.0 are vulnerable to Stored Cross-Site-Scripting (XSS) due to user input not being validated properly in the Allergies section. An attacker could lure an admin to enter a malicious payload and by that initiate the exploit.

Affected Products

2 affected entries in total
ProductAffected versionsFixed in
OpenemrOpen-Emr>= 2.7.3-rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.9.0, 3.0.0, 3.0.1, 3.1.0, 3.2.0, 4.0.0, 4.1.0, 4.1.1, 4.1.2, 4.1.2.3, 4.1.2.6, 4.1.2.7, 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.06.0.0

Patched Releases

Openemr

<=6.0.0

Timeline

  1. Publicly disclosed

    Mar 22, 2021

  2. Last updated

    Jul 8, 2026

Weakness Type

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

References

FAQ

Common Questions.

Is CVE-2021-25921 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo