{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "15.89.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "d8dab986fa7bdda88df74906df61df4c81e2c8b0"
            }
          ],
          "repo": "https://github.com/frappe/erpnext",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2025-66440",
  "modified": "2026-03-10T21:50:44.330658550Z",
  "published": "2025-12-15T18:15:48.663Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/frappe/frappe/security"
    },
    {
      "type": "EVIDENCE",
      "url": "https://iamanc.github.io/post/erpnext-sqli"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}