GHSA-4mw5-2636-4535
medium
op_panic in the base runtime can force a panic in the runtime's containing thread
- Severity
- medium rating by GitHub
- Published
- Last changed
- 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:
Deno.core.ops.op_panic = (msg) => { throw new Error(msg) };
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| js-sandbox (crates.io) | up to 0.1.6, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-4mw5-2636-4535 changed 2025-10-28 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2024-0403 changed 2025-10-28 | CC0-1.0 |