Findings

CVE-2025-66440

An issue was discovered in Frappe ERPNext through 15.89.0.

Published Dec 15, 2025 · updated Oct 14, 2026 · frappe erpnext

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.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Dec 15, 2025 · NIST NVD

    Detected

    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

  2. Oct 14, 2026 · NIST NVD

    Updated

    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

Affected

  • cpe frappe/erpnextversion unspecified

Sources

  • CVE.orgVulnerability recordCVE-2025-66440

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2025-66440

    30-day exploitation probability 0.4%

    first.org
  • NIST NVDVulnerability recordCVE-2025-66440

    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

    nvd.nist.gov

References

CVE-2025-66440 · ZeroDay Findings