SQL Injection in Frappe's ERPNext

Posted date 29/07/2026
Identificador
INCIBE-2026-514
Importance
4 - High
Affected Resources

ERPNext: versions prior to 15.111.0 and 16.22.0.

Description

INCIBE has coordinated the disclosure of a high-severity vulnerability affecting Frappe's ERPNext, an enterprise resource planning system. The vulnerability was discovered by Alejandro Ramos.

This vulnerability has been assigned the following code, CVSS v4.0 base score, CVSS vector, and CWE vulnerability type:

  • CVE-2026-12895: CVSS v4.0: 7.1| CVSS AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N | CWE- 89
Solution

The vulnerability has been fixed by the Frappe team in versions 15.111.0 and 16.22.0.

Detail

CVE-2026-12895: 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.

CVE
Identificador CVE Severidad Explotación Fabricante
CVE-2026-12895 Alta No Frappe