cvelo
P2 · HighCVSS 7.2EPSS 0.7%

Frappe before 16.36.0 Jinja Sandbox Bypass via Module-Path Hooks

  • CVE-2026-137551
  • GHSA-2mp6-rg3v-jj4v
  • EUVD-2026-136763

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.

Text from the CVE.org record.

Recommendation

  • frappe

    • If you run a version from 16.0.0 to before 16.36.0update to 16.36.0 or laterMinor version change: check the release notes
    • If you run a version before 15.121.2update to 15.121.2 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • frappe

    Affected versionsFixed in
    from 16.0.0 to before 16.36.016.36.0
    before 15.121.215.121.2

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.