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

Published Updated

CVSS score

High

8.6/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
16.36.0, 15.121.2
Attack path
Over the network
Admin access, no user action

What is CVE-2026-137551?

CVE-2026-137551 is a high-severity vulnerability in frappe, published on 26 Nov 2026.

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

Weakness: CWE-749

How severe is CVE-2026-137551?

CVE-2026-137551 scores 8.6 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
High
User interaction
None
Confidentiality
High
Integrity
High
Availability
High

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

Which versions are affected by CVE-2026-137551?

2 open source packages ship an affected version, including frappe.

PackageAffectedFixed in
frappe PyPI
pkg:pypi/frappe
All versions15.121.2
frappe PyPI
pkg:pypi/frappe
From 16.0.016.36.0

How do I fix CVE-2026-137551?

Upgrade frappe to a fixed version for your release line: 16.36.0 or 15.121.2.

Is CVE-2026-137551 being exploited?

There is no known exploitation of CVE-2026-137551 in the wild and no public exploit code.

Sources

Also known as GHSA-2mp6-rg3v-jj4v, GHSA-qrxv-3vjh-gpx7.

Is CVE-2026-137551 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free