An issue was discovered in Frappe ERPNext through 15.89.0. Function get_outstanding_reference_documents() at erpnext/accounts/doctype/payment_entry/payment_entry.py is vulnerable to SQL Injection. It allows an attacker to extract arbitrary data from the database by injecting SQL payloads via the to_posting_date parameter, which is directly interpolated into the query without proper sanitization or parameter binding.
{
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66440.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "15.89.0"
}
],
"source": "DESCRIPTION"
}
]
}{
"cpe": "cpe:2.3:a:frappe:erpnext:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "15.89.0"
}
],
"source": "CPE_RANGE"
}