{"api_version":"1","generated_at":"2026-08-18T02:11:02+00:00","cve":"CVE-2026-65974","urls":{"html":"https://cve.report/CVE-2026-65974","api":"https://cve.report/api/cve/CVE-2026-65974.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-65974","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-65974"},"summary":{"title":"ERPNext: Server-Side Template Injection leading to Remote Code Execution","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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-08-17 21:16:46","updated_at":"2026-08-17 21:16:46"},"problem_types":["CWE-1336","CWE-1336 CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"9.9","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":9.9,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"9.9","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://github.com/frappe/erpnext/releases/tag/v16.22.0","name":"https://github.com/frappe/erpnext/releases/tag/v16.22.0","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c","name":"https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr","name":"https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/frappe/erpnext/releases/tag/v15.111.0","name":"https://github.com/frappe/erpnext/releases/tag/v15.111.0","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-65974","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65974","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"frappe","product":"erpnext","version":"affected < 15.111.0","platforms":[]},{"source":"CNA","vendor":"frappe","product":"erpnext","version":"affected >= 16.0.0, < 16.22.0","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"erpnext","vendor":"frappe","versions":[{"status":"affected","version":"< 15.111.0"},{"status":"affected","version":">= 16.0.0, < 16.22.0"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-08-17T20:44:20.818Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr","tags":["x_refsource_CONFIRM"],"url":"https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr"},{"name":"https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c","tags":["x_refsource_MISC"],"url":"https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c"},{"name":"https://github.com/frappe/erpnext/releases/tag/v15.111.0","tags":["x_refsource_MISC"],"url":"https://github.com/frappe/erpnext/releases/tag/v15.111.0"},{"name":"https://github.com/frappe/erpnext/releases/tag/v16.22.0","tags":["x_refsource_MISC"],"url":"https://github.com/frappe/erpnext/releases/tag/v16.22.0"}],"source":{"advisory":"GHSA-w996-r7v3-87wr","discovery":"UNKNOWN"},"title":"ERPNext: Server-Side Template Injection leading to Remote Code Execution"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-65974","datePublished":"2026-08-17T20:44:20.818Z","dateReserved":"2026-07-23T18:15:14.580Z","dateUpdated":"2026-08-17T20:44:20.818Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-08-17 21:16:46","lastModifiedDate":"2026-08-17 21:16:46","problem_types":["CWE-1336","CWE-1336 CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":9.9,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.1,"impactScore":6}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"65974","Ordinal":"1","Title":"ERPNext: Server-Side Template Injection leading to Remote Code E","CVE":"CVE-2026-65974","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"65974","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"ERPNext: Server-Side Template Injection leading to Remote Code E"}]}}}