Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-25917

In OpenEMR, versions 5.0.2 to 6.0.0 are vulnerable to Stored Cross-Site-Scripting (XSS) due to user input not being validated properly and rendered in the U2F USB Device authentication method page. A highly privileged attacker could inject arbitrary code into input fields when creating a new user.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-25917
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:41 UTC · Revision 1

Source evidence

CVE-2021-25917

core-osv · Original source

Published 22 Mar 2021, 20:15 UTC

In OpenEMR, versions 5.0.2 to 6.0.0 are vulnerable to Stored Cross-Site-Scripting (XSS) due to user input not being validated properly and rendered in the U2F USB Device authentication method page. A highly privileged attacker could inject arbitrary code into input fields when creating a new user.

osv:CVE-2021-25917
Complete source record
{
  "id": "c341f7e5df03320af72080b5e33d855a376817a16b9c910b952415d6e80cb948",
  "url": "https://osv.dev/vulnerability/CVE-2021-25917",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-25917",
    "summary": "In OpenEMR, versions 5.0.2 to 6.0.0 are vulnerable to Stored Cross-Site-Scripting (XSS) due to user input not being validated properly and rendered in the U2F USB Device authentication method page. A highly privileged attacker could inject arbitrary code into input fields when creating a new user.",
    "evidence": "osv:CVE-2021-25917",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-25917",
      "aliases": [
        "CVE-2021-25917"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openemr/openemr",
              "type": "GIT",
              "events": [
                {
                  "introduced": "35a67d11567419866d8aa9de0ae355676eeebede"
                },
                {
                  "last_affected": "4c3f9f5917d765f944cdbf3b9df15375476b3711"
                },
                {
                  "fixed": "0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.0.2"
                      },
                      {
                        "last_affected": "6.0.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-25917.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:33.586004626Z",
      "provider": "osv",
      "references": [
        "https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25917",
        "https://github.com/openemr/openemr/commit/0fadc3e592d84bc9dfe9e0403f8bd6e3c7d8427f"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-25917",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385577,
  "published_at": "2021-03-22T20:15:17.693+00:00"
}