GHSA-4mw5-2636-4535
JSON

medium

op_panic in the base runtime can force a panic in the runtime's containing thread

Severity
medium rating by GitHub
Published
Last changed
Also known as
RUSTSEC-2024-0403

Description

Affected versions use deno_core releases that expose Deno.core.ops.op_panic to the JS runtime in the base core

This function when called triggers a manual panic in the thread containing the runtime, breaking sandboxing

It can be fixed by stubbing out the exposed op:

Deno.core.ops.op_panic = (msg) => { throw new Error(msg) };

Affected

Product or packageVersionsReported by
js-sandbox (crates.io)up to 0.1.6, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-4mw5-2636-4535 changed 2025-10-28CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2024-0403 changed 2025-10-28CC0-1.0