CVE-2026-12895
JSON

7.1high

SQL Injection in Frappe's ERPNext

Severity
7.1high CVSS:4.0 by INCIBE
Exploit likelihood
0.37% (higher than 23% of CVEs)
Published
Last changed
Assigned by
INCIBE

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

Product or packageVersionsReported by
Frappe ERPNextbefore 15.111.0, before 16.22.0CVE List

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Inyección SQL en ERPNext de Frappe, versiones ERPNext 15.107.0 y Frappe 15.107.2. La aplicación construye consultas SQL mediante interpolación directa de cadenas usando ’str.format()’ sin emplear consultas parametrizadas, permitiendo que el nombre (docname) de un registro de Proveedor que contiene metacaracteres SQL sea interpretado como parte de la consulta. La explotación de esta vulnerabilidad podría permitir a un usuario autenticado con bajos privilegios ejecutar consultas SQL arbitrarias, eludir las restricciones de acceso de Frappe (DocPerm), extraer información confidencial de la base de datos -incluyendo fragmentos del hash de la contraseña del administrador- y acceder a otros datos sensibles, como credenciales, tokens de integración o información financiera.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-12895 changed 2026-07-29CVE Terms of Use
NVDCVE-2026-12895 changed 2026-10-23Public domain