CVE-2026-24002 pyodide sandbox option is insecure

Critical 9.1 Published Updated

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.

Sources

Also known as GHSA-7xvx-8pf2-pv5g.

Is CVE-2026-24002 in your software?

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

Check your SBOMs for free