Skip to content
DayZeroHub
High Not yet writtenCVSS 8.6CVE-2026-137551

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

frappe frappe

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-137551: high-severity vulnerability (CVSS 8.6) in frappe frappe.

What happened

Original description from the source: 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

High severity, CVSS 8.6.

Affected products and versions

frappe frappe >= 16.0.0, < 16.36.0; frappe frappe 16.36.0 (fixed in 16.36.0); frappe frappe < 15.121.2; frappe frappe 15.121.2 (fixed in 15.121.2)

ProductVersionsFixed in
frappe frappe>= 16.0.0, < 16.36.0—
frappe frappe16.36.016.36.0
frappe frappe< 15.121.2—
frappe frappe15.121.215.121.2

Action recommended by the source

Upgrade to a fixed version: 15.121.2, 16.36.0.

Fixed in: 15.121.2, 16.36.0

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-749

Relevant change history

  1. Published

    Preliminary advisory published.