Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-25921
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:41 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-25921
Complete source record
{
"id": "51e53db6815b7bf2d26ca8b34cbcf79a56d9c8b3193b67feb9ff2c7ff254eb93",
"url": "https://osv.dev/vulnerability/CVE-2021-25921",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-25921",
"summary": "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.",
"evidence": "osv:CVE-2021-25921",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-25921",
"aliases": [
"CVE-2021-25921"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/openemr/openemr",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "4c3f9f5917d765f944cdbf3b9df15375476b3711"
},
{
"fixed": "0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.7.3"
},
{
"last_affected": "6.0.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v6_0_0",
"v3_0_1",
"v3_0_0",
"v2_9_0",
"v2_8_3",
"v2_8_2",
"v2_8_1",
"v2_8_0",
"v2_7_3-rc1",
"v2_7_2",
"v2_7_2-rc2",
"v2_7_2-rc1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-25921.json"
}
}
],
"modified": "2026-10-20T10:54:33.543893286Z",
"provider": "osv",
"references": [
"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25921",
"https://github.com/openemr/openemr/commit/0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-25921",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385566,
"published_at": "2021-03-22T20:15:17.943+00:00"
}