SQL Injection in Frappe Erpnext
CVE-2025-52050
In Frappe ERPNext 15.57.5, the function get_loyalty_program_details_with_points() at erpnext/accounts/doctype/loyalty_program/loyalty_program.py is vulnerable to SQL Injection, which allows an attacker to extract all information from databases by injecting a SQL query into the expiry_date parameter.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.003 (17.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 17th percentile — 17.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: 0.000
Affected products
- Frappe Erpnext — versions 15.57.5
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/Vietsunshine-Electronic-Solution-JSC/Vulnerability-Disclosures/blob/… (Exploit, Third Party Advisory)
- github.com/frappe/erpnext/pull/49192/commits/8696ba2f5d9e99c799d4aef577f72f2fae… (Patch)
Frequently asked questions
- What is CVE-2025-52050?
- CVE-2025-52050 is a medium-severity vulnerability in Frappe Erpnext, classified under SQL Injection. CVSS score: 6.5/10. Published 2025-09-30.
- How severe is CVE-2025-52050?
- Medium severity. CVSS v3 base score is 6.5 out of 10.
- Is CVE-2025-52050 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.