CVE-2026-12895: CWE-89 Improper neutralization of special elements used in an SQL command ('SQL injection') in Frappe ERPNext
CVE-2026-12895 is a high-severity SQL injection vulnerability in Frappe's ERPNext application. The issue arises from unsafe construction of SQL queries using direct string interpolation without parameterized queries, allowing specially crafted Supplier record names to alter SQL commands. An authenticated low-privilege user can exploit this to execute arbitrary SQL queries, bypass access controls, and extract sensitive data including administrator password hash fragments and credentials.
AI Analysis
Technical Summary
This vulnerability in ERPNext versions 15.107.0 and Frappe 15.107.2 involves improper neutralization of special elements in SQL commands (CWE-89). The application uses Python's str.format() for SQL query construction without parameterization, enabling injection via the Supplier record's name (docname). Exploitation allows authenticated users with low privileges to bypass DocPerm access restrictions and execute arbitrary SQL commands, potentially exposing confidential information such as password hashes, credentials, integration tokens, and financial data. No official patch or remediation level has been provided as of the published date.
Potential Impact
Exploitation can lead to unauthorized SQL query execution by low-privilege authenticated users, bypassing access controls and exposing sensitive database information including administrator password hash fragments and other confidential data. This compromises data confidentiality and integrity within the ERPNext system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to trusted users only and monitor for suspicious activity related to Supplier record modifications. Avoid using vulnerable versions in production environments if possible.
CVE-2026-12895: CWE-89 Improper neutralization of special elements used in an SQL command ('SQL injection') in Frappe ERPNext
Description
CVE-2026-12895 is a high-severity SQL injection vulnerability in Frappe's ERPNext application. The issue arises from unsafe construction of SQL queries using direct string interpolation without parameterized queries, allowing specially crafted Supplier record names to alter SQL commands. An authenticated low-privilege user can exploit this to execute arbitrary SQL queries, bypass access controls, and extract sensitive data including administrator password hash fragments and credentials.
CVSS v4.0
Score 7.1high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in ERPNext versions 15.107.0 and Frappe 15.107.2 involves improper neutralization of special elements in SQL commands (CWE-89). The application uses Python's str.format() for SQL query construction without parameterization, enabling injection via the Supplier record's name (docname). Exploitation allows authenticated users with low privileges to bypass DocPerm access restrictions and execute arbitrary SQL commands, potentially exposing confidential information such as password hashes, credentials, integration tokens, and financial data. No official patch or remediation level has been provided as of the published date.
Potential Impact
Exploitation can lead to unauthorized SQL query execution by low-privilege authenticated users, bypassing access controls and exposing sensitive database information including administrator password hash fragments and other confidential data. This compromises data confidentiality and integrity within the ERPNext system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to trusted users only and monitor for suspicious activity related to Supplier record modifications. Avoid using vulnerable versions in production environments if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- INCIBE
- Date Reserved
- 2026-06-22T12:58:30.777Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a69e2899c2644c7f86a81c0
Added to database: 07/29/2026, 11:22:49 UTC
Last enriched: 07/29/2026, 11:37:01 UTC
Last updated: 07/29/2026, 12:01:16 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.