CVE-2026-12895

published 29 Jul 2026 · updated 29 Jul 2026

SQL Injection in Frappe's ERPNext

7.1HighCVSS 7.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 15.111.0 and 16.22.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
frappe<15.111.0, <16.22.015.111.0, 16.22.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-12895 severity on Zeptric[![CVE-2026-12895](https://zeptric.io/badge/cve/CVE-2026-12895.svg)](https://zeptric.io/cve/CVE-2026-12895)