Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege ERPNext account
-
DeliveryCreate Supplier with SQL metacharacters in docname
-
ExploitTrigger query built via str.format()
-
ExecutionInjected SQL executes on database
-
ImpactBypass DocPerm and extract admin hash and credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated account with at least low privileges (CVSS PR:L) that can create or set the name/docname of a Supplier record; the attacker embeds SQL metacharacters in that Supplier docname, which the application then interpolates into a query via str.format() instead of a parameterized query. Exploitation is network-reachable with no user interaction and low complexity, but is limited by the need for a valid login and the ability to influence Supplier record naming - it is not exploitable by fully unauthenticated, anonymous internet users against a default configuration. |
| Impact | The signals are moderately consistent. The CVSS 4.0 base score is 7.1 (High) with AV:N/AC:L/AT:N/PR:L/UI:N and VC:H/VI:N/VA:L - remote, low-complexity, requires an authenticated but low-privilege account, high confidentiality impact and only limited availability impact. No EPSS score, KEV listing, or public POC was provided, so this is not confirmed as actively exploited and should be treated as a real-but-not-emergency priority: exploitation requires a valid low-privilege login and the ability to create/name a Supplier record, which limits opportunistic mass exploitation but is very realistic for insider or post-account-compromise abuse. The primary caveat is data completeness - the only reference is an INCIBE advisory notice and no exact fixed version or vendor patch advisory URL is provided, so remediation specifics could not be independently confirmed. |
| Exploit ScenarioDerived | A user with a low-privilege ERPNext account (for example a vendor-portal or junior procurement account) creates or edits a Supplier record and sets its name to a string containing SQL metacharacters crafted to alter the backend query. When the application interpolates that docname into a str.format() query, the attacker's SQL executes with the app's database privileges, letting them dump the administrator password hash and other DocTypes while bypassing DocPerm - all over the network with low attack complexity and no user interaction. No public exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 29, 2026
SQL injection in Frappe's ERPNext (ERPNext 15.107.0, Frappe framework 15.107.2) lets an authenticated low-privilege user run arbitrary SQL by placing SQL metacharacters in the name (docname) of a Supplier record, which is later interpolated into a query via str.format() instead of being parameterized. Because the injected query runs with the application's database privileges, an attacker can bypass Frappe's DocPerm access controls and read data they should not see, including fragments of the administrator's password hash, stored credentials, integration tokens, and financial records. Per the CVSS 4.0 vector the flaw is network-reachable with low attack complexity and only low privileges (PR:L), and there is no public exploit identified at time of analysis.
RemediationAI
No vendor-released patch version was identified at time of analysis; consult the INCIBE-CERT notice (https://www.incibe.es/en/incibe-cert/notices/aviso/sql-injection-frappes-erpnext) and the Frappe/ERPNext security channel for the fixed release and upgrade to it once published, since the underlying fix is to replace the str.format()-based query construction with Frappe's parameterized frappe.db.sql bindings. As compensating controls until a patched build is deployed, restrict who can create or rename Supplier records by tightening DocPerm/role permissions on the Supplier DocType (trade-off: may block legitimate procurement workflows), enforce strict input validation or a naming series that rejects SQL metacharacters in Supplier names, minimize the number of accounts with any authenticated access, and increase database and application query logging to detect anomalous Supplier docnames or unexpected query patterns.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Frappe is a Python full-stack web framework and ERPNext is the ERP application built on top of it; both share a MariaDB/MySQL-backed document (DocType) data model where each record has a 'name' primary key (docname). The root cause is CWE-89 (SQL Injection): a query is assembled by direct string interpolation using Python's str.format() rather than the framework's parameterized query API (frappe.db.sql with bound parameters), so a Supplier docname carrying SQL metacharacters escapes its intended string context and is parsed as SQL. Because the query executes under the ORM/database connection rather than through Frappe's DocPerm permission layer, the injection also acts as an authorization bypass, exposing data across DocTypes the low-privilege user could not normally read.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable with a low-privilege authenticated account (PR:L, AV:N, AC:L); high confidentiality from arbitrary data extraction, no integrity impact stated, limited availability impact from arbitrary SQL.
Primary rating from Vendor (incibe).
CVSS VectorVendor: incibe
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
ERPNext 15.107.0 (Frappe 15.107.2) contains a SQL injection vulnerability accessible to any authenticated low-privilege user-such as employees and vendors-enabling unauthorized access to sensitive financial records, administrative credentials, and integration tokens beyond their authorization scope. This creates immediate data breach and credential compromise risk for organizations using affected versions, with no current vendor patch available. Interim defensive measures are required.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict Supplier record creation/editing permissions to administrative users only; (2) implement input validation to block SQL metacharacters in Supplier docname fields; (3) enable database query audit logging with alerts for injection-pattern detection; (4) review Supplier records created or modified by low-privilege users within the past 90 days to identify unauthorized data access.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-50294
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB