Frappe before 16.36.0 Jinja Sandbox Bypass via Module-Path Hooks

State
Published
Severity
8.6 High
Published
Nov 26, 2026
Updated
Nov 26, 2026
Reserved
Nov 26, 2026

Read the record on cve.org

Description

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.

ProductVersions
frappe frappe16.0.0 to before 16.36.0 Affected16.36.0 Not Affected
frappe frappebefore 15.121.2 Affected15.121.2 Not Affected

Weaknesses

  • CWE-749 Exposed Dangerous Method or Function

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.