CVE-2026-12895: CWE-89 Improper neutralization of special elements used in an SQL command ('SQL injection') in Frappe ERPNext
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.
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
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.
CVSS v4.0
Score 7.1high
Affected software
Frappe
ERPNext
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
Threat ID: 6a69e2899c2644c7f86a81c0
Added to database: 07/29/2026, 11:22:49 UTC
Last enriched: 07/29/2026, 11:37:01 UTC
Last updated: 09/12/2026, 10:01:29 UTC
Views: 86
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.