Jinja sandbox bypass in Frappe Framework via module-path hooks
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Frappe Framework from 16.0.0 before 16.36.0 and before 15.121.2 exposes functions imported into module-path-hooked modules as Jinja globals, so sandboxed templates can call them by name. An authenticated user who can author rendered templates, such as Print Formats, can invoke these functions to run server-side code and bypass the Jinja sandbox (CWE-749).
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade Frappe Framework 16.x to 16.36.0 and Frappe Framework 15.x to 15.121.2.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
- Fix · CNA frappe (frappe) Fixed in 16.36.0
- Fix · CNA frappe (frappe) Fixed in 15.121.2
Timeline
- 2026-11-26 Threatist record created from CVE-2026-137551
- 2026-11-27 Alias added: GHSA-2mp6-rg3v-jj4v
References
More frappe vulnerabilities
- TI-2026-28140 ERPNext v15.103.1 and before is vulnerable to Server-Side Template Injection (SSTI). CVSS 3.1CRITICAL 9.8
- TI-2025-40873 An issue was discovered in Frappe ERPNext through 15.89.0. CVSS 3.1CRITICAL 9.8
- TI-2025-40872 An issue was discovered in Frappe ERPNext through 15.89.0. CVSS 3.1CRITICAL 9.8
- TI-2025-40871 A Server-Side Template Injection (SSTI) vulnerability exists in the Frappe ERPNext… CVSS 3.1CRITICAL 9.8
- TI-2025-32462 In Frappe ERPNext 15.57.5, the function get_rfq_containing_supplier() at… CVSS 3.1HIGH 8.2
- TI-2025-32461 In Frappe ERPNext 15.57.5, the function get_stock_balance_for() at… CVSS 3.1HIGH 8.2
Sources
- CVE-2026-137551 · CVE Program
- CVE-2026-137551 · NVD
- FIRST EPSS
- GHSA-2mp6-rg3v-jj4v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences