CVE-2026-137551
Frappe before 16.36.0 Jinja Sandbox Bypass via Module-Path Hooks
High · 8.6Fix available
- CVSS
- 8.6
- EPSS
- 0.67% (p47)
- Published
- 2026-11-26
- Age
- 2d old
- Modified
- 2026-11-26
- Product
- frappe frappe
- Aliases
- GHSA-qrxv-3vjh-gpx7
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
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.
Fixed in
15.121.2 · 16.36.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | frappe | >=0, <15.121.2 | 15.121.2 |
| vendor | frappe | >=16.0.0, <16.36.0 | 16.36.0 |
Sources
- NVD · first seen 2d ago · NVD terms of use
- OSV · first seen 2d ago · CC-BY 4.0
- CVE List · first seen 2d ago · CVE Terms of Use
References
- https://github.com/frappe/frappe/security/advisories/GHSA-qrxv-3vjh-gpx7 vendor-advisory
- https://www.vulncheck.com/advisories/frappe-before-16.36.0-jinja-sandbox-bypass-via-module-path-hooks third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137551.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-137551 advisory