SQL injection in ERPNext - CVE-2025-52040

 

SQL injection in ERPNext - CVE-2025-52040

Published: April 24, 2026


Vulnerability identifier: #VU127502
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-52040
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Frappe
Affected software:
ERPNext

Detailed vulnerability description

The vulnerability allows a remote user to disclose sensitive information.

The vulnerability exists due to SQL injection in certain endpoints when handling request parameters. A remote user can send specially crafted parameters to disclose sensitive information.

The issue is error-based and may allow retrieval of information such as version details.


How to mitigate CVE-2025-52040

Install security update from vendor's website.

Sources