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

Published Jul 29, 2026
·
Updated

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.

Affected Software

2 affected components
Frappe ERPNext=15.107.0
Frappe ERPNext=15.107.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Frappe/ERPNext to a version that resolves this vulnerability.

    Fixed in 15.111.0
  2. Upgrade

    Upgrade Frappe/ERPNext to a version that resolves this vulnerability.

    Fixed in 16.22.0

Event History

Jul 29, 2026
CVE Published
via MITRE·10:58 AM
Data Sourced
via MITRE·10:58 AM
RemedyDescriptionWeakness
Data Sourced
via NVD·11:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-12895?

CVE-2026-12895 has a severity rating of high, specifically scored at 7.1 on the CVSS scale.

2

How do I fix CVE-2026-12895?

To mitigate CVE-2026-12895, upgrade to the latest versions of Frappe and ERPNext that address the SQL injection vulnerability.

3

What is the risk associated with CVE-2026-12895?

The risk associated with CVE-2026-12895 is classified as 49, indicating a critical potential for exploitation due to SQL injection.

4

Which versions of Frappe and ERPNext are affected by CVE-2026-12895?

CVE-2026-12895 affects Frappe versions prior to 15.107.2 and ERPNext versions prior to 15.107.0.

5

What type of vulnerability is CVE-2026-12895?

CVE-2026-12895 is an SQL injection vulnerability that allows attackers to manipulate database queries through improperly constructed SQL queries.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203