Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as template author
-
DeliveryCraft Print Format calling leaked Jinja global
-
ExploitBypass Jinja sandbox on render
-
ExecutionExecute code server-side
-
ImpactFull server compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Dangerous method exposure prevention
|
| Exploitation Conditions | Requires an authenticated account that holds the privilege to create or edit rendered templates - specifically server-side-rendered templates such as Print Formats - in Frappe Framework. The attacker then calls, by name, a function that was imported into a module-path-hooked module and consequently exposed as a Jinja global. Limiting factors: the attacker must already be authenticated and possess template-authoring rights (PR:H; in practice an elevated role such as System Manager, not an ordinary end user), and the affected versions are Frappe Framework before 15.121.2 and 16.x before 16.36.0. There is no user-interaction requirement and the vector is network-reachable, but the privilege gate meaningfully narrows the exposed population to deployments where template-authoring users are not fully trusted. |
| Impact | This is a credible but privilege-gated server-side code execution flaw in Frappe Framework, scored CVSS 4.0 8.6 (High) by the vendor with vector AV:N/AC:L/AT:N/PR:H/UI:N and full VC:H/VI:H/VA:H impact. The signals are consistent rather than conflicting: network-reachable (AV:N), low attack complexity (AC:L), no user interaction (UI:N), but PR:H - the attacker must already be an authenticated user able to author rendered templates such as Print Formats, which in Frappe typically means an elevated role (e.g. System Manager). The vuln.today priority is 'this_week' rather than act_now/emergency. No KEV listing, no EPSS score, and no POC are present in the input, so exploitation status is 'no public exploit identified at time of analysis.' Net: this is a genuine RCE worth prompt patching for any multi-tenant or lower-trust Frappe deployment where template authors are not fully trusted, but the PR:H requirement makes it a privilege-escalation-to-RCE for already-trusted operators rather than a remote-unauthenticated internet-facing emergency. EPSS and KEV data are absent (not errors), so real-world exploitation frequency cannot be quantified from the provided data. |
| Exploit ScenarioDerived | An authenticated Frappe user who holds the privilege to author rendered templates (such as a Print Format) writes a template that references, by name, a function that was imported into a module-path-hooked module and thereby leaked into the Jinja global namespace. When the template is rendered, that function executes outside the intended Jinja sandbox, giving the attacker server-side code execution. No public exploit code was identified in the provided sources; only the GitHub Security Advisory and VulnCheck advisory are referenced. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Authenticated users with template-authoring rights in Frappe Framework before 15.121.2 and 16.x before 16.36.0 can escape the Jinja sandbox and execute server-side code by invoking, by name, functions imported into module-path-hooked modules that are exposed as Jinja globals. The vendor scores this CVSS 4.0 8.6 (High) with PR:H, since exploitation requires an account holding a role such as System Manager that can create or edit rendered templates like Print Formats; an independently assessed CVSS 3.1 vector of AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H agrees on full confidentiality, integrity and availability impact within the Frappe application. No confirmed public exploit code was identified at time of analysis, and the flaw is not listed in CISA KEV; priority is this_week, with fixes released in 15.121.2 and 16.36.0.
RemediationAI
Upgrade Frappe Framework to 16.36.0 or later on the 16.x branch, or to 15.121.2 or later on the 15.x branch; these are the fixed releases listed in the package data and vendor advisory https://github.com/frappe/frappe/security/advisories/GHSA-qrxv-3vjh-gpx7. The vendor states there are no workarounds, so updating is the only complete fix; until the upgrade is applied, reduce exposure by limiting template-authoring privileges to trusted administrators, since exploitation depends on the ability to author rendered templates such as Print Formats, and by reviewing existing Print Formats for suspicious template content.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a CWE-749 (exposed dangerous method or function) issue in Frappe's Jinja template handling. Frappe's module-path hooks allow a module to substitute or extend imports at a given dotted module path; functions imported into such a hooked module become visible in the Jinja global namespace available to rendered templates. Because templates such as Print Formats are evaluated by the Jinja sandbox, which is meant to restrict template expressions to safe operations, the presence of those globals lets a template author reach callables the sandbox was supposed to keep out of reach, yielding server-side code execution. The affected packages are pip/frappe before 16.36.0 and before 15.121.2 (CPE cpe:2.3:a:frappe:frappe). The CVSS vector contributes AV:N and AC:L with PR:H; the trigger for the sandbox escape is the naming of exposed globals from an authored template, and no user interaction is required beyond that authoring capability.
Know when Frappe gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable template rendering (AV:N) with no special trigger complexity (AC:L); authoring Print Formats needs an elevated role so PR:H; code execution yields full C/I/A on the host, scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Frappe Framework before 15.121.2 and 16.x before 16.36.0 exposes functions imported into module-path-hooked modules as Jinja globals, making them callable from sandboxed templates. Authenticated users who can author rendered templates, such as Print Formats, can invoke these functions by name to achieve server-side code execution that bypasses the Jinja sandbox.
Technical POC Analysis
Bug class: CWE-749, Exposed Dangerous Method or Function (per the CVE record; the GHSA itself lists no CWE).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-137551 is a high-severity sandbox escape in Frappe Framework (versions before 15.121.2 and 16.x before 16.36.0) that allows authenticated users with template-authoring privileges, such as System Managers, to execute arbitrary server-side code. This grants full control over the application and its data, potentially leading to data breaches, service disruption, and compliance violations. Leadership should prioritize remediation because the vulnerability requires only a privileged account but can result in complete compromise of the Frappe environment.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Stored cross-site scripting leading to code execution in Frappe Framework 15.89.0 (and the ERPNext application built on
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
Authenticated SQL injection in Frappe ERPNext through 15.89.0 allows low-privilege users to extract arbitrary database c
SQL injection in Frappe ERPNext through 15.89.0 lets an authenticated attacker with a valid session and access to the Pa
Authenticated server-side template injection in Frappe ERPNext through 15.89.0 lets a user who can create or modify an A
An SQL injection vulnerability exists in the frappe.desk.reportview.get functionality of ERPNext 11.1.38. Rated high sev
Arbitrary file read in the Frappe full-stack web application framework allows remote unauthenticated attackers to retrie
SQL injection in Frappe HelpDesk 1.14.0 dashboard functionality allows authenticated attackers to execute arbitrary SQL
In Frappe ERPNext 15.57.5, the function get_rfq_containing_supplier() at erpnext/buying/doctype/request_for_quotation/re
EUVD-2026-136763
NVD
CVE.org
EPSS
GitHub
Exploit-DB