{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:frappe:erpnext:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "12.0.9"
              },
              {
                "fixed": "13.1.0"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "db76612462bf8f5e8d739e791f439d12f36becb8"
            }
          ],
          "repo": "https://github.com/frappe/erpnext",
          "type": "GIT"
        },
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "v13.0.3"
              },
              {
                "introduced": "v12.0.9"
              },
              {
                "last_affected": "v12.0.9"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "574605f00b3fee20001df9c24e069cf1cd2ab0b7"
            },
            {
              "fixed": "497ea861f481c6a3c52fe2aed9d0df1b6c99e9d7"
            }
          ],
          "repo": "https://github.com/frappe/frappe",
          "type": "GIT"
        }
      ],
      "versions": [
        "v12.0.9"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Mend",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23058.json"
  },
  "details": "ERPNext in versions v12.0.9-v13.0.3 are affected by a stored XSS vulnerability that allows low privileged users to store malicious scripts in the ‘username’ field in ‘my settings’ which can lead to full account takeover.",
  "id": "CVE-2022-23058",
  "modified": "2026-07-08T05:36:25.332845489Z",
  "published": "2022-06-22T07:30:21.429Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://www.mend.io/vulnerability-database/CVE-2022-23058"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23058.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23058"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/frappe/commit/497ea861f481c6a3c52fe2aed9d0df1b6c99e9d7"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "ERPNext  - Stored XSS in My Settings"
}