{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:frappe:erpnext:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "13.0.1"
              },
              {
                "fixed": "13.30.0"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "e0222723f05d730463d741de7a5ebff9e2081b3a"
            },
            {
              "fixed": "d9f76478da41c797567076422734161e8cab8f12"
            }
          ],
          "repo": "https://github.com/frappe/erpnext",
          "type": "GIT"
        }
      ],
      "versions": [
        "v13.0.0-beta.13"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Mend",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23056.json"
  },
  "details": "In ERPNext, versions v13.0.0-beta.13 through v13.30.0 are vulnerable to Stored XSS at the Patient History page which allows a low privilege user to conduct an account takeover attack.",
  "id": "CVE-2022-23056",
  "modified": "2026-08-12T03:51:27.052398993Z",
  "published": "2022-06-22T07:25:16.868Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/frappe/erpnext/blob/21a3ea462aaf319e466c067c2ec406eb9abe6ed3/erpnext/healthcare/page/patient_history/patient_history.js#L288"
    },
    {
      "type": "WEB",
      "url": "https://www.mend.io/vulnerability-database/CVE-2022-23056"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23056.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23056"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "ERPNext - Stored XSS leads to account takover"
}