{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "15.111.0"
              },
              {
                "introduced": "16.0.0"
              },
              {
                "fixed": "16.22.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "c3fdb191b9c6bbb2b0d98d0156eafd9a3faa96b0"
            },
            {
              "fixed": "2b3e3dfd83558539f79bc6a5ecd5462f6678dd21"
            },
            {
              "fixed": "054b20a2ae1bdea44694cca72d17412945171cab"
            }
          ],
          "repo": "https://github.com/frappe/erpnext",
          "type": "GIT"
        },
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "529d190a252863672164d10bfcd91d1de0ac1c7c"
            }
          ],
          "repo": "https://github.com/frappe/frappe",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-w996-r7v3-87wr"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1336"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65974.json"
  },
  "details": "ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 15.111.0 and 16.22.0, limited authenticated users can cross a permission boundary in Frappe safe execution because frappe.render_template is exposed without forcing restrict_globals, allowing server-side template injection and remote code execution. This issue is fixed in versions 15.111.0 and 16.22.0.",
  "id": "CVE-2026-65974",
  "modified": "2026-09-11T03:30:48.513256118Z",
  "published": "2026-08-17T20:44:20.818Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/frappe/erpnext/releases/tag/v15.111.0"
    },
    {
      "type": "WEB",
      "url": "https://github.com/frappe/erpnext/releases/tag/v16.22.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65974.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-65974"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c"
    }
  ],
  "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: Server-Side Template Injection leading to Remote Code Execution"
}