CVE-2023-54406 Frappe before 14.59.0 Safe Execution Flag Bypass in Server Scripts

Medium 6.9 Published Updated

Authenticated high-privileged users can bypass server script sandboxing to execute arbitrary code by triggering nested script executions.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-54406?

CVE-2023-54406 is a medium-severity vulnerability in frappe, published on 12 Oct 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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.

Weakness: CWE-372

Which versions are affected by CVE-2023-54406?

How do I fix CVE-2023-54406?

No fix has been published for CVE-2023-54406 yet. Limit exposure of the affected software until one is available.

Is CVE-2023-54406 being exploited?

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

Sources

Also known as GHSA-fg2g-fx2h-8fqw, GHSA-v3vh-7qx4-f582.

Is CVE-2023-54406 in your software?

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

Check your SBOMs for free