# GHSA-4mw5-2636-4535: op_panic in the base runtime can force a panic in the runtime's containing thread

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-07-18T12:00:00.000Z
- Modified: 2025-10-28T06:29:23.047Z
- 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:
```javascript
Deno.core.ops.op_panic = (msg) => { throw new Error(msg) };
```

(As written by GitHub Advisory Database.)

## Affected

- js-sandbox (crates.io): up to 0.1.6; from 0.0.0-0

## References

- <https://github.com/Bromeon/js-sandbox/issues/31> (report, web)
- <https://github.com/Bromeon/js-sandbox> (package)
- <https://rustsec.org/advisories/RUSTSEC-2024-0403.html> (advisory, web)
- <https://crates.io/crates/js-sandbox> (package)

## Sources

- GitHub Advisory Database: [GHSA-4mw5-2636-4535](https://github.com/advisories/GHSA-4mw5-2636-4535), CC-BY-4.0, modified 2025-10-28
- RustSec Advisory Database: [RUSTSEC-2024-0403](https://rustsec.org/advisories/RUSTSEC-2024-0403.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-4mw5-2636-4535 · Whole record: https://cve.day/GHSA-4mw5-2636-4535.json · Rebuilt by cve.day 2026-11-25T22:56:43.225Z
