CVE-2026-137551 Frappe before 16.36.0 Jinja Sandbox Bypass via Module-Path Hooks
HighCVSS 8.6
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi frappe | < 15.121.2; >= 16.0.0, < 16.36.0 | 15.121.2, 16.36.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi frappe | >= 16.0.0, < 16.36.0 | 16.36.0 |
| pypi frappe | < 15.121.2 | 15.121.2 |
References
- GitHub Security Advisory (GHSA-qrxv-3vjh-gpx7) vendor-advisory
- VulnCheck Advisory: Frappe before 16.36.0 Jinja Sandbox Bypass via Module-Path Hooks third-party-advisory
- ENISA EUVD EUVD-2026-136763 third-party-advisory