SQL Injection Vulnerability in ERPNext by Frappe
CVE-2026-12895

7.1HIGH

Key Information:

Vendor

Frappe

Status
Vendor
CVE Published:
29 July 2026

What is CVE-2026-12895?

A vulnerability in ERPNext, specifically in versions 15.107.0 and Frappe 15.107.2, allows for SQL injection due to the use of direct string interpolation in SQL query construction. This flaw can be exploited by authenticated users with low privileges, enabling them to execute arbitrary SQL queries. By manipulating the name (docname) of a Supplier record, attackers may bypass access controls, leading to unauthorized access to sensitive information stored in the database, including credentials, integration tokens, and fragments of the administrator’s password hash. Organizations using affected versions should apply patches promptly to mitigate the risk.

Affected Version(s)

ERPNext 0 < 15.111.0

ERPNext 0 < 16.22.0

References

CVSS V4

Score:
7.1
Severity:
HIGH
Confidentiality:
High
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Alejandro Ramos
.