CVE-2026-24002 pyodide sandbox option is insecure
Attackers can execute arbitrary code on the server if Grist is configured to use the insecure pyodide sandbox flavor.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-24002?
CVE-2026-24002 is a critical code injection vulnerability in gristlabs grist-core, published on 22 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Grist is spreadsheet software using Python as its formula language. Grist offers several methods for running those formulas in a sandbox, for cases where the user may be working with untrusted spreadsheets. One such method runs them in pyodide, but pyodide on node does not have a useful sandbox barrier. If a user of Grist sets `GRIST_SANDBOX_FLAVOR` to `pyodide` and opens a malicious document, that document could run arbitrary processes on the server hosting Grist. The problem has been addressed in Grist version 1.7.9 and up, by running pyodide under deno. As a workaround, a user can use the gvisor-based sandbox by setting `GRIST_SANDBOX_FLAVOR` to `gvisor`.
Weakness: CWE-74
Which versions are affected by CVE-2026-24002?
It affects 1 product.
Products include Getgrist Grist-Core.
How do I fix CVE-2026-24002?
No fix has been published for CVE-2026-24002 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-24002 being exploited?
There is no known exploitation of CVE-2026-24002 in the wild and no public exploit code.
Other vulnerabilities in gristlabs grist-core
- CVE-2024-56357 Cross-site Scripting vulnerability through custom widget URLs and form redirect URLs in grist-core
- CVE-2024-56358 Cross-site Scripting vulnerability through svg attachment previews in grist-core
- CVE-2024-56359 Cross-site Scripting vulnerability through HyperLink cells in grist-core
- CVE-2025-64752 grist-core has path to server-side requests via websocket
- CVE-2025-64753 grist-core has insufficient access control in endpoints for comparisons between documents and versions
Sources
Also known as GHSA-7xvx-8pf2-pv5g.