What’s Vulnerable › Vulnerabilities
CVE-2026-12895: SQL Injection in Frappe's ERPNext
- Severity: high (CVSS 7.1 v4.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-29 · updated 2026-10-23
- Weakness: CWE-89
Description
SQL injection in Frappe's ERPNext, versions ERPNext 15.107.0 and Frappe 15.107.2. The application constructs SQL queries through direct string interpolation using `str.format()` without employing parameterized queries, allowing the name (docname) of a Supplier record containing SQL metacharacters to be interpreted as part of the query. Exploitation of this vulnerability could allow an authenticated user with low privileges to execute arbitrary SQL queries, bypass Frappe’s access restrictions (DocPerm), extract confidential information from the database—including fragments of the administrator’s password hash—and access other sensitive data, such as credentials, integration tokens, or financial information.
Affected products
- frappe erpnext: before 15.111.0; before 16.22.0 — fixed in 15.111.0, 16.22.0
How to fix
Upgrade to a fixed version: frappe erpnext 15.111.0, 16.22.0. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-12895 or the next vulnerability affects your stack