CVE-2026-137551

7.2High

Published Nov 26, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

7.2CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
High
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-749

What an attacker gets

Authenticated attackers can achieve remote code execution by calling arbitrary functions from sandboxed templates. This requires an account with permissions to author templates like Print Formats.

Root cause

The framework incorrectly exposes functions imported into module-path-hooked modules as Jinja globals, bypassing sandbox restrictions.

Affected versions

Frappe Framework before 15.121.2 and 16.x before 16.36.0

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to Frappe Framework 15.121.2 or 16.36.0. If you cannot patch immediately, restrict access to template editing features for all non-admin users.

remediation — bash
$ bench update --patch

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-137551

More fully triaged vulnerabilities you may want to check next.