{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "15.118.0"
              },
              {
                "introduced": "16.0.0"
              },
              {
                "fixed": "16.29.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "c3fdb191b9c6bbb2b0d98d0156eafd9a3faa96b0"
            },
            {
              "fixed": "e6b4799b1a4c12bc96b8ffbb5508e50eefe8d9ee"
            },
            {
              "fixed": "a5de60c357d531cb31da093f0b86301776965173"
            },
            {
              "fixed": "5f6952b15c1f6ee893770d5bc618558a6ba41a28"
            },
            {
              "fixed": "88443e4a97c6c0a40d85a9e6785577191296ee39"
            },
            {
              "fixed": "ecb6d48ec025e0c94abac35b2e4f7607f4c86465"
            }
          ],
          "repo": "https://github.com/frappe/erpnext",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-qq49-v74j-hjh7"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1336"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72911.json"
  },
  "details": "ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 15.118.0 and 16.29.0, the validate_template and render_template calls in erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py render subject, body, and pdf_name fields with unrestricted globals including frappe.utils, allowing an authenticated user with a common operational role to inject template expressions, execute arbitrary server-side code, and read data across the application. This issue is fixed in versions 15.118.0 and 16.29.0.",
  "id": "CVE-2026-72911",
  "modified": "2026-09-11T03:30:44.958861257Z",
  "published": "2026-08-10T21:00:46.536Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/frappe/erpnext/releases/tag/v15.118.0"
    },
    {
      "type": "WEB",
      "url": "https://github.com/frappe/erpnext/releases/tag/v16.29.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72911.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/frappe/erpnext/security/advisories/GHSA-qq49-v74j-hjh7"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-72911"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/erpnext/commit/5f6952b15c1f6ee893770d5bc618558a6ba41a28"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/erpnext/commit/88443e4a97c6c0a40d85a9e6785577191296ee39"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/erpnext/commit/ecb6d48ec025e0c94abac35b2e4f7607f4c86465"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/erpnext/pull/56458"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ERPNext: Possibility of server-side template injection due to missing validation"
}