All vulnerabilities

PyPI · Servers and applications

CVE-2026-137551

Frappe before 16.36.0 Jinja Sandbox Bypass via Module-Path Hooks

Severity
High 8.6
Published
26 Nov 2026
Last changed
26 Nov 2026
Added to UpHeron
26 Nov 2026
Fixed in
15.121.2, 16.36.0
Weakness
CWE-749
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
Frappe FrameworkServers and applications · cna:frappe|frappe
  • Every version before 15.121.2
  • From 16.0.0 before 16.36.0
Frappe FrameworkPyPI · osv:PyPI:frappe
  • Every version before 15.121.2
  • From 16.0.0 before 16.36.0

About Frappe Framework

Low code web framework for real world applications, in Python and Javascript

From its GitHub repository.
Weekly downloads (PyPI)
323,356PyPI Stats, 22 Nov 2026
GitHub stars
11,139GitHub, 22 Nov 2026
Forks
5,550GitHub, 22 Nov 2026
Latest release
v16.60.2GitHub, 22 Nov 2026
Released
18 Nov 2026GitHub
License
MITGitHub
First published on GitHub
8 Jun 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-137551