Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-12895: CWE-89 Improper neutralization of special elements used in an SQL command ('SQL injection') in Frappe ERPNext

0
High
VulnerabilityCVE-2026-12895cvecve-2026-12895cwe-89
Published: 07/29/2026 (07/29/2026, 10:58:50 UTC)
Source: CVE Database V5
Vendor/Project: Frappe
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/29/2026, 11:37:01 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses