---
id: CVE-2023-54406
title: >-
  Frappe before 14.59.0 and 15.x before 15.5.0 contains a sandbox flaw where the
  frappe.flags.in_safe_exec global flag can become False during Server Script
  execution when one server script triggers another
summary: >-
  Frappe before 14.59.0 and 15.x before 15.5.0 contains a sandbox flaw where the
  frappe.flags.in_safe_exec global flag can become False during Server Script
  execution when one server script triggers another. Authenticated
  high-privileged u…
severity: medium
cvss: 4.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N'
cwe:
  - CWE-372
published: '2026-10-12'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T23:17:17.057'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-54406'
references:
  - url: 'https://github.com/frappe/frappe/security/advisories/GHSA-v3vh-7qx4-f582'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/frappe-before-14.59.0-safe-execution-flag-bypass-in-server-scripts
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-13T00:09:02.605Z'
---

## Overview

Frappe before 14.59.0 and 15.x before 15.5.0 contains a sandbox flaw where the frappe.flags.in_safe_exec global flag can become False during Server Script execution when one server script triggers another. Authenticated high-privileged users can craft a Server Script that triggers other server scripts, such as by saving a document, so the remaining code runs without safe execution protections.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
