All reports
Medium

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

Affected versions

Version ranges need review.

Rust / Cargojs-sandbox
Affected versions
>=0.0.0-0
Fixed version
Not reported
Rust / Cargojs-sandbox
Affected versions
<= 0.1.6
Fixed version
Not reported

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) };

Links