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.
{
"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"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "15.118.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "16.0.0"
},
{
"fixed": "16.29.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "5f6952b15c1f6ee893770d5bc618558a6ba41a28"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "88443e4a97c6c0a40d85a9e6785577191296ee39"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "ecb6d48ec025e0c94abac35b2e4f7607f4c86465"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v15.118.0",
"range": [
{
"fixed": "e6b4799b1a4c12bc96b8ffbb5508e50eefe8d9ee"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v16.29.0",
"range": [
{
"fixed": "a5de60c357d531cb31da093f0b86301776965173"
}
],
"source": "REFERENCES_TAG"
}
]
}