{"dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": {"cveId": "CVE-2026-65974", "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "state": "PUBLISHED", "assignerShortName": "GitHub_M", "dateReserved": "2026-07-23T18:15:14.580Z", "datePublished": "2026-08-17T20:44:20.818Z", "dateUpdated": "2026-08-18T14:17:47.852Z"}, "containers": {"cna": {"title": "ERPNext: Server-Side Template Injection leading to Remote Code Execution", "problemTypes": [{"descriptions": [{"cweId": "CWE-1336", "lang": "en", "description": "CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine", "type": "CWE"}]}], "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"}}], "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"}], "affected": [{"vendor": "frappe", "product": "erpnext", "versions": [{"version": "< 15.111.0", "status": "affected"}, {"version": ">= 16.0.0, < 16.22.0", "status": "affected"}]}], "providerMetadata": {"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M", "dateUpdated": "2026-08-17T20:44:20.818Z"}, "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."}], "source": {"advisory": "GHSA-w996-r7v3-87wr", "discovery": "UNKNOWN"}, "x_gcve": [{"vulnId": "CVE-2026-65974", "recordType": "advisory"}]}, "adp": [{"metrics": [{"other": {"type": "ssvc", "content": {"timestamp": "2026-08-18T14:16:59.926975Z", "id": "CVE-2026-65974", "options": [{"Exploitation": "none"}, {"Automatable": "no"}, {"Technical Impact": "total"}], "role": "CISA Coordinator", "version": "2.0.3"}}}], "title": "CISA ADP Vulnrichment", "providerMetadata": {"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2026-08-18T14:17:47.852Z"}}]}, "vulnerability-lookup:meta": {"epss": {"cve": "CVE-2026-65974", "date": "2026-11-08", "epss": "0.01029", "percentile": "0.63904"}, "nvd": "{\"cve\":{\"id\":\"CVE-2026-65974\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2026-08-17T21:16:46.887\",\"lastModified\":\"2026-10-23T16:10:00.313\",\"vulnStatus\":\"Deferred\",\"cveTags\":[],\"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.\"},{\"lang\":\"es\",\"value\":\"ERPNext es una herramienta de Planificaci\u00f3n de Recursos Empresariales gratuita y de c\u00f3digo abierto. Antes de las versiones 15.111.0 y 16.22.0, usuarios autenticados con privilegios limitados pod\u00edan traspasar un l\u00edmite de permisos en la ejecuci\u00f3n segura de Frappe porque frappe.render_template est\u00e1 expuesto sin forzar restrict_globals, lo que permite la inyecci\u00f3n de plantillas del lado del servidor y la ejecuci\u00f3n remota de c\u00f3digo. Este problema est\u00e1 solucionado en las versiones 15.111.0 y 16.22.0.\"}],\"affected\":[{\"source\":\"security-advisories@github.com\",\"affectedData\":[{\"vendor\":\"frappe\",\"product\":\"erpnext\",\"versions\":[{\"version\":\"< 15.111.0\",\"status\":\"affected\"},{\"version\":\">= 16.0.0, < 16.22.0\",\"status\":\"affected\"}]}]}],\"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.0}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2026-08-18T14:16:59.926975Z\",\"id\":\"CVE-2026-65974\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"total\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-1336\"}]}],\"references\":[{\"url\":\"https://github.com/frappe/erpnext/releases/tag/v15.111.0\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/frappe/erpnext/releases/tag/v16.22.0\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c\",\"source\":\"security-advisories@github.com\"}]}}", "vulnrichment": {"containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-65974\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-08-18T14:16:59.926975Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-08-18T14:17:12.238Z\"}}], \"cna\": {\"title\": \"ERPNext: Server-Side Template Injection leading to Remote Code Execution\", \"source\": {\"advisory\": \"GHSA-w996-r7v3-87wr\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV3_1\": {\"scope\": \"CHANGED\", \"version\": \"3.1\", \"baseScore\": 9.9, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"CRITICAL\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}], \"affected\": [{\"vendor\": \"frappe\", \"product\": \"erpnext\", \"versions\": [{\"status\": \"affected\", \"version\": \"< 15.111.0\"}, {\"status\": \"affected\", \"version\": \">= 16.0.0, < 16.22.0\"}]}], \"references\": [{\"url\": \"https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr\", \"name\": \"https://github.com/frappe/erpnext/security/advisories/GHSA-w996-r7v3-87wr\", \"tags\": [\"x_refsource_CONFIRM\"]}, {\"url\": \"https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c\", \"name\": \"https://github.com/frappe/frappe/commit/529d190a252863672164d10bfcd91d1de0ac1c7c\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/frappe/erpnext/releases/tag/v15.111.0\", \"name\": \"https://github.com/frappe/erpnext/releases/tag/v15.111.0\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/frappe/erpnext/releases/tag/v16.22.0\", \"name\": \"https://github.com/frappe/erpnext/releases/tag/v16.22.0\", \"tags\": [\"x_refsource_MISC\"]}], \"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.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-1336\", \"description\": \"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2026-08-17T20:44:20.818Z\"}}}", "cveMetadata": "{\"cveId\": \"CVE-2026-65974\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-18T14:17:47.852Z\", \"dateReserved\": \"2026-07-23T18:15:14.580Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2026-08-17T20:44:20.818Z\", \"assignerShortName\": \"GitHub_M\"}", "dataType": "CVE_RECORD", "dataVersion": "5.2"}}}
