{
  "id": "CVE-2026-65974",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-65974",
  "published_at": "2026-08-17T20:44:20.818Z",
  "title": "ERPNext: Server-Side Template Injection leading to Remote Code Execution",
  "vendor": "frappe",
  "product": "erpnext",
  "cvss": {
    "score": 9.9,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "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.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.",
  "cwe": "CWE-1336",
  "cvss_by_source": {
    "cna": 9.9
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "frappe",
        "product": "erpnext",
        "ranges": [
          "\u003c 15.111.0",
          "\u003e= 16.0.0, \u003c 16.22.0"
        ],
        "fixed_in": [
          "15.111.0",
          "16.22.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade erpnext to 15.111.0 or 16.22.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/frappe/erpnext/releases/tag/v15.111.0"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/frappe/erpnext/releases/tag/v16.22.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
