CVE-2026-137551: Frappe before 16.36.0 Jinja Sandbox Bypass via Module-Path Hooks

Published Nov 26, 2026
·
Updated

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.

Affected Software

1 affected component
Frappe Frappe Framework<15.121.2, >=16.0<16.36.0

Event History

Nov 26, 2026
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness
Event
via NVD·04:18 PM

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Frappe Framework deployments before 15.121.2 and 16.x before 16.36.0 are affected if authenticated users can author templates that are rendered by the application, such as Print Formats.

2

What access does an attacker need to exploit it?

An attacker needs an authenticated account with permission to create or modify rendered templates. No user interaction is required after the attacker can author a template.

3

What is the impact of successful exploitation?

The attacker can call functions exposed as Jinja globals from a sandboxed template, bypassing the Jinja sandbox and achieving server-side code execution. This can affect confidentiality, integrity, and availability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203