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:
```javascript
Deno.core.ops.op_panic = (msg) => { throw new Error(msg) };
```
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | js-sandbox | <= 0.1.6 | — | GHSA-4mw5-2636-4535 |
| crates.io | js-sandbox | >= 0.0.0-0 | — | RUSTSEC-2024-0403 |