{
  "id": "CVE-2026-65822",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-65822",
  "published_at": "2026-08-17T20:45:45.647Z",
  "title": "ERPNext: SQL Injection in \"Inactive Customers\" report via unvalidated `doctype` filter",
  "vendor": "frappe",
  "product": "erpnext",
  "cvss": {
    "score": 7.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 15.116.0 and 16.23.0, erpnext/selling/report/inactive_customers/inactive_customers.py accepts an unvalidated doctype filter and interpolates it into raw SQL in get_sales_details and get_last_sales_amt, allowing an authenticated user to extract sensitive information and manipulate database queries. This issue is fixed in versions 15.116.0 and 16.23.0.",
  "cwe": "CWE-89",
  "cvss_by_source": {
    "cna": 7.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "frappe",
        "product": "erpnext",
        "ranges": [
          "\u003c 15.116.0",
          "\u003e= 16.0.0, \u003c 16.23.0"
        ],
        "fixed_in": [
          "15.116.0",
          "16.23.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade erpnext to 15.116.0 or 16.23.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/frappe/erpnext/security/advisories/GHSA-x35x-4mvx-h959"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/frappe/erpnext/pull/55721"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/frappe/erpnext/commit/29dd6e6681d20bbacb69517d2d2c875aa929eb9e"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/frappe/erpnext/commit/f43af6624610e874e61ad3faf8701e5e6be6271a"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/frappe/erpnext/releases/tag/v15.116.0"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/frappe/erpnext/releases/tag/v16.23.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
