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

Vulnerability · Reported by NVD · · CWE-749

Severity
High Risk score 86/100
CVSS
8.6 v4.0 · from NVD
Exploit chance (EPSS)
0.67% Higher than 47% of CVEs
Known exploited
No Not in CISA KEV

Summary

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.

How this vulnerability can be exploited

An attacker can exploit this vulnerability remotely over the network, only with administrator-level privileges, and without any action from a user. Attack complexity is low, so no special conditions are needed.

Is it being exploited?

The EPSS model estimates a 0.67% chance this CVE will be exploited in the next 30 days, which is low and higher than 47% of all published CVEs.

Patch priority and what to do

Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S

See what each part means in the official CVSS calculator ↗

Tags

CVE-2026-137551

Sources & references

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.