CVE-2025-52039: Frappe ERPNext · SQL Injection
Source CVE Database V5
Not known to be exploited · CVSS 8.2 High.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 27% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
- Immediate action should include restricting access to the ERPNext instance, ensuring it is not publicly accessible without proper network controls such as VPNs or IP whitelisting.
- Implement Web Application Firewalls (WAFs) with custom rules to detect and block SQL Injection patterns targeting the 'txt' parameter in the affected function.
- Conduct a thorough audit of all ERPNext instances to identify affected versions and isolate them until patched.
- Monitor database and application logs for unusual query patterns or access attempts that may indicate exploitation attempts.
- Engage with the ERPNext community or vendor to obtain patches or updates addressing this vulnerability as soon as they become available.
- As a temporary workaround, consider disabling or restricting the functionality related to material requests based on suppliers if feasible.
- Educate internal teams about the risks of SQL Injection and enforce secure coding practices for any customizations or extensions to ERPNext.
- Regularly back up ERP data securely to enable recovery in case of data compromise.
Description
In Frappe ERPNext 15.57.5, the function get_material_requests_based_on_supplier() at erpnext/stock/doctype/material_request/material_request.py is vulnerable to SQL Injection, which allows an attacker to extract all information from databases by injecting a SQL query into the txt parameter.