{"id":"CVE-2022-23056","summary":"ERPNext - Stored XSS leads to account takover","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.","modified":"2026-10-22T10:33:40.128998485Z","published":"2022-06-22T07:25:16.868Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23056.json","cna_assigner":"Mend","cwe_ids":["CWE-79"]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/frappe/erpnext","events":[{"introduced":"202ef92fa1f2c588bbe3b2b2c3fc3aea331bf67f"},{"fixed":"d9f76478da41c797567076422734161e8cab8f12"}],"database_specific":{"extracted_events":[{"strategy":"SplitRange","range":[{"introduced":"v13.0.0-beta.13"},{"last_affected":"v13.30.0"}],"source":"AFFECTED_FIELD"},{"cpe":"cpe:2.3:a:frappe:erpnext:*:*:*:*:*:*:*:*","range":[{"introduced":"13.0.1"},{"fixed":"13.30.0"}],"source":"CPE_RANGE"}]}}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-23056.json"}}],"schema_version":"1.9.2"}