{"api_version":"1","generated_at":"2026-07-23T14:46:48+00:00","cve":"CVE-2021-25921","urls":{"html":"https://cve.report/CVE-2021-25921","api":"https://cve.report/api/cve/CVE-2021-25921.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-25921","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-25921"},"summary":{"title":"CVE-2021-25921","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.","state":"PUBLIC","assigner":"vulnerabilitylab@whitesourcesoftware.com","published_at":"2021-03-22 20:15:00","updated_at":"2021-03-24 18:24:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25921","name":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25921","refsource":"MISC","tags":[],"title":"CVE-2021-25921 | WhiteSource Vulnerability Database","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/openemr/openemr/commit/0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f","name":"https://github.com/openemr/openemr/commit/0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f","refsource":"MISC","tags":[],"title":"bug fixes (#4280) · openemr/openemr@0fadc3e · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-25921","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25921","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"25921","vulnerable":"1","versionEndIncluding":"6.0.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"open-emr","cpe5":"openemr","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-25921","ASSIGNER":"vulnerabilitylab@whitesourcesoftware.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"openemr","version":{"version_data":[{"version_value":"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.0"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Cross-Site-Scripting"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://github.com/openemr/openemr/commit/0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f","url":"https://github.com/openemr/openemr/commit/0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f"},{"refsource":"MISC","name":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25921","url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25921"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]}},"nvd":{"publishedDate":"2021-03-22 20:15:00","lastModifiedDate":"2021-03-24 18:24:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.3,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":3.5},"severity":"LOW","exploitabilityScore":6.8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*","versionStartIncluding":"2.7.3","versionEndIncluding":"6.0.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"25921","Ordinal":"200848","Title":"CVE-2021-25921","CVE":"CVE-2021-25921","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"25921","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"25921","Ordinal":"2","NoteData":"2021-03-22","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"25921","Ordinal":"3","NoteData":"2021-03-22","Type":"Other","Title":"Modified"}]}}}