{"id":"CVE-2026-12895","published":"2026-07-29T10:58:50Z","modified":"2026-07-29T12:07:55Z","title":"SQL Injection in Frappe's ERPNext","vendor":"Frappe","product":"ERPNext","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00366,"percentile":0.31179,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://www.incibe.es/en/incibe-cert/notices/aviso/sql-injection-frappes-erpnext","tags":["patch"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":6.24},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"frappe","affectedVersions":[{"vendor":"Frappe","product":"ERPNext","versions":["< 15.111.0","< 16.22.0"]}],"solutions":{"items":["The vulnerability has been fixed by the Frappe team in versions 15.111.0 and 16.22.0."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-29T12:07:25.492403Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-50294","exploited":false,"provenance":"source"}}