CVE-2026-12895 Details
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.
A SQL injection vulnerability has been identified in Frappe's ERPNext version 15.107.0 and Frappe 15.107.2. The issue arises because the application creates SQL queries by directly interpolating strings with 'str.format()' without using parameterized queries. This flaw allows the name (docname) of a Supplier record that includes SQL metacharacters to be processed as part of the SQL query. An authenticated user with low privileges could exploit this vulnerability to execute arbitrary SQL queries, bypass Frappe's access controls, and extract sensitive information from the database, such as parts of the administrator's password hash, credentials, integration tokens, financial data, and other confidential information.
The vulnerability has been fixed in Frappe ERPNext versions 15.111.0 and 16.22.0.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 29, 2026CISA-ADP
Assessed Jul 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.incibe.es/en/incibe-cert/notices/aviso/sql-injection-frappes-erpnext | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Frappe ERPNext | < 15.111.0 (semver) < 16.22.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Jul 29, 2026 | CVE Modified | CISA-ADP |
| Jul 29, 2026 | New CVE Received | [email protected] |
Volerion