Spreadsheet Sabotage: “Cellbreak” Flaw Turns Grist-Core into a Hacker’s Playground
A newly unearthed vulnerability in Grist-Core lets attackers turn harmless formulas into dangerous remote code execution tools-putting data and servers at risk.
Imagine opening an innocuous spreadsheet, only to have your entire server hijacked before your eyes. That’s not a hypothetical anymore: security researchers have uncovered a critical flaw in Grist-Core, the open-source spreadsheet-database hybrid, that lets attackers weaponize formula cells to run malicious code on the host machine. The vulnerability, ominously dubbed “Cellbreak” (CVE-2026-24002), exposes a dangerous weakness in the very boundaries meant to keep “data logic” and “host execution” safely apart. For organizations relying on Grist-Core, the threat is real-and the clock is ticking.
The Anatomy of a Spreadsheet Breach
At the heart of the Cellbreak vulnerability lies Grist-Core’s innovative but risky feature: the ability to execute Python code directly within spreadsheet cells, powered by Pyodide-a Python environment running inside the browser via WebAssembly. The intention? Give users the power of Python, safely sandboxed away from the host system. The reality? A loophole in the sandboxing approach allows attackers to break free and run OS-level commands, blurring the line between simple spreadsheet logic and full-blown server compromise.
Security researcher Vladimir Tokarev, who discovered the flaw, explains that Grist’s Pyodide sandbox relies on a blocklist-explicitly denying certain dangerous functions, but leaving enough open doors for savvy attackers. Specifically, the sandbox’s design permits traversal of Python’s class hierarchy and leaves critical modules like ctypes accessible. This enables attackers to reach Emscripten runtime functions-never intended for spreadsheet code-opening the path to execute arbitrary commands and even access sensitive files or credentials stored on the server.
The implications are severe: a single malicious spreadsheet, once opened, could let an attacker steal database credentials, read confidential files, or pivot deeper into an organization’s infrastructure. The flaw mirrors similar sandbox escapes in other automation platforms (like the recent N8scape incident), highlighting a growing systemic risk across the software supply chain.
In response, Grist’s developers have reworked formula execution to run under the more restrictive Deno JavaScript runtime by default. However, if operators override this by setting GRIST_PYODIDE_SKIP_DENO=1, the risk returns-underscoring the peril of relying on permissive sandboxes and blocklists.
A Warning for the Future
Cellbreak is more than just a bug; it’s a cautionary tale. As organizations rush to empower users with flexible automation and scripting, the boundaries between safe data handling and dangerous code execution grow perilously thin. Grist-Core’s drama is a stark reminder: when sandboxing fails, trust boundaries collapse, and the spreadsheet in your browser can become an attacker’s launchpad. For now, the fix is clear-patch immediately, and review your sandbox settings. But the larger lesson? Defense-in-depth is not optional in the age of programmable data.
WIKICROOK
- Remote Code Execution (RCE): Remote Code Execution (RCE) is when an attacker runs their own code on a victim’s system, often leading to full control or compromise of that system.
- Sandbox Escape: A sandbox escape is when an attacker or malicious code breaks out of a secure, isolated environment to access the broader system.
- WebAssembly (WASM): WebAssembly (Wasm) lets browsers run fast, complex code-like games or apps-directly in your web browser, enabling near-native performance.
- Pyodide: Pyodide enables Python execution in web browsers via WebAssembly, allowing seamless integration of Python and JavaScript for interactive web applications.
- Blocklist: A blocklist is a list of items, like compromised passwords or malicious IPs, that are actively blocked to enhance system security.



