What’s Vulnerable › Vulnerabilities
CVE-2018-20061
- Severity: high (CVSS 7.5 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2018-12-11 · updated 2026-06-17
- Weakness: CWE-89
Description
A SQL injection issue was discovered in ERPNext 10.x and 11.x through 11.0.3-beta.29. This attack is only available to a logged-in user; however, many ERPNext sites allow account creation via the web. No special privileges are needed to conduct the attack. By calling a JavaScript function that calls a server-side Python function with carefully chosen arguments, a SQL attack can be carried out which allows SQL queries to be constructed to return any columns from any tables in the database. This is related to /api/resource/Item?fields= URIs, frappe.get_list, and frappe.call.
Affected products
- frappe erpnext: from 10.0.0 through 10.1.76; from 11.0.0 before 11.0.3; 11.0.3-beta10, 11.0.3-beta11, 11.0.3-beta12, 11.0.3-beta13, 11.0.3-beta14, 11.0.3-beta15 (+22) — fixed in 11.0.3
How to fix
Upgrade to a fixed version: frappe erpnext 11.0.3. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2018-20061 or the next vulnerability affects your stack