SQL Injection in Frappe Erpnext

CVE-2025-52039

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.

Vulnerability class: SQL Injection

EPSS: 0.003 (23.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2025-52039?
CVE-2025-52039 is a high-severity vulnerability in Frappe Erpnext, classified under SQL Injection. CVSS score: 8.2/10. Published 2025-10-01.
How severe is CVE-2025-52039?
High severity. CVSS v3 base score is 8.2 out of 10.
Is CVE-2025-52039 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.