# GHSA-4MW5-2636-4535: op\_panic in the base runtime can force a panic in the runtime's containing thread

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2024-12-04
- Modified: 2025-10-28

## Also published as

- [RUSTSEC-2024-0403](https://cve.now/RUSTSEC-2024-0403.md) (RustSec)

## Affected versions

- js-sandbox (crates.io): through 0.1.6

## 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://github.com/Bromeon/js-sandbox/issues/31
- https://github.com/Bromeon/js-sandbox
- https://rustsec.org/advisories/RUSTSEC-2024-0403.html

Page: https://cve.now/GHSA-4MW5-2636-4535

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