Read the docs

Jinja sandbox bypass in Frappe Framework via module-path hooks

Priority LOW 38CWE-749Published · Updated

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

EPSS 0.00667 46th percentileScored 2026-11-30
Fix Fixed frappe (frappe): 16.36.0, 15.121.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
frappefrappe16.0.0 to before 16.36.016.36.0Patch availableCNA
frappefrappebefore 15.121.215.121.2Patch availableCNA
  • frappe Vendorfrappe Affected 16.0.0 to before 16.36.0 Fixed in 16.36.0 Patch available CNA
  • frappe Vendorfrappe Affected before 15.121.2 Fixed in 15.121.2 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:frappe:frappe:*:*:*:*:*:*:*:*——frappe
  • cpe:2.3:a:frappe:frappe:*:*:*:*:*:*:*:* Versions — — ·frappe

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

  1. 2026-11-26 Threatist record created from CVE-2026-137551
  2. 2026-11-27 Alias added: GHSA-2mp6-rg3v-jj4v

References

  • 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
See all 408 →

Sources