# CVE-2026-12895: SQL Injection in Frappe's ERPNext

- Severity: High 7.1 (CVSS:4.0, scored by INCIBE) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 23% of CVEs (2026-11-30)
- Published: 2026-07-29T10:58:50.322Z
- Modified: 2026-10-23T23:10:00.157Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Frappe ERPNext: before 15.111.0; before 16.22.0

## References

- <https://www.incibe.es/en/incibe-cert/notices/aviso/sql-injection-frappes-erpnext> (patch)

## Sources

- CVE List: [CVE-2026-12895](https://www.cve.org/CVERecord?id=CVE-2026-12895), CVE Terms of Use, modified 2026-07-29
- NVD: [CVE-2026-12895](https://nvd.nist.gov/vuln/detail/CVE-2026-12895), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-12895 · Whole record: https://cve.day/CVE-2026-12895.json · Rebuilt by cve.day 2026-11-25T22:59:30.425Z
