CVE-2026-12895
published high CVSS 4.0 · 7.1SQL Injection in Frappe's ERPNext
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Frappe | — | ERPNext0 to < 15.111.0 · 0 to < 16.22.0 · Other versions: unaffected | Affected | Not stated | INCIBE |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- INCIBE · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Frappe | ERPNext | 0 to < 15.111.0 (affected · custom)0 to < 16.22.0 (affected · custom)Default: unaffected | INCIBE · cna |
Weaknesses
1- CWE-89 CWE-89 Improper neutralization of special elements used in an SQL command ('SQL injection')
References
1Provider assertions
2INCIBE · cna
SQL Injection in Frappe's ERPNext
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 774bcfda5a0235555c5beaebf867ba693f14f4b25eec9bc55e42857406a5702e
- Ingested
- 23 Sep 2026, 09:01:12 UTC
- Source record
- Official CVE record