# RUSTSEC-2024-0403: op\_panic in the base runtime can force a panic in the runtime's containing thread

- Database: RustSec
- Published: 2024-07-18
- Modified: 2025-10-28

## Also published as

- [GHSA-4MW5-2636-4535](https://cve.now/GHSA-4MW5-2636-4535.md) (GitHub)

## Affected versions

- js-sandbox (crates.io): all versions

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

## References

- https://crates.io/crates/js-sandbox
- https://rustsec.org/advisories/RUSTSEC-2024-0403.html
- https://github.com/Bromeon/js-sandbox/issues/31

Page: https://cve.now/RUSTSEC-2024-0403

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
