{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-65822",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-07-22T23:16:47.752Z",
        "datePublished": "2026-08-17T20:45:45.647Z",
        "dateUpdated": "2026-08-18T13:01:42.822Z"
    },
    "containers": {
        "cna": {
            "title": "ERPNext: SQL Injection in \"Inactive Customers\" report via unvalidated `doctype` filter",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-89",
                            "lang": "en",
                            "description": "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "LOW",
                        "baseScore": 7.6,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/frappe/erpnext/security/advisories/GHSA-x35x-4mvx-h959",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/frappe/erpnext/security/advisories/GHSA-x35x-4mvx-h959"
                },
                {
                    "name": "https://github.com/frappe/erpnext/pull/55721",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/frappe/erpnext/pull/55721"
                },
                {
                    "name": "https://github.com/frappe/erpnext/commit/29dd6e6681d20bbacb69517d2d2c875aa929eb9e",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/frappe/erpnext/commit/29dd6e6681d20bbacb69517d2d2c875aa929eb9e"
                },
                {
                    "name": "https://github.com/frappe/erpnext/commit/f43af6624610e874e61ad3faf8701e5e6be6271a",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/frappe/erpnext/commit/f43af6624610e874e61ad3faf8701e5e6be6271a"
                },
                {
                    "name": "https://github.com/frappe/erpnext/releases/tag/v15.116.0",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/frappe/erpnext/releases/tag/v15.116.0"
                },
                {
                    "name": "https://github.com/frappe/erpnext/releases/tag/v16.23.0",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/frappe/erpnext/releases/tag/v16.23.0"
                }
            ],
            "affected": [
                {
                    "vendor": "frappe",
                    "product": "erpnext",
                    "versions": [
                        {
                            "version": "< 15.116.0",
                            "status": "affected"
                        },
                        {
                            "version": ">= 16.0.0, < 16.23.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-08-17T20:45:45.647Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-x35x-4mvx-h959",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-08-18T12:57:40.825451Z",
                                "id": "CVE-2026-65822",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-08-18T13:01:42.822Z"
                }
            }
        ]
    }
}