---
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
vendor: frappe
product: frappe
affected:
  - frappe < 14.59.0
  - frappe >= 15.0.0 < 15.5.0
published: '2026-10-12'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T15:17:16.553'
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
  - cve.org
epss: 0.00315
epssPercentile: 0.24272
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-15T14:03:05.698644Z'
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.
