{"id":"GHSA-4mw5-2636-4535","aliases":["RUSTSEC-2024-0403"],"status":"published","title":"op_panic in the base runtime can force a panic in the runtime's containing thread","description":"Affected versions use deno_core releases that expose `Deno.core.ops.op_panic` to the JS runtime in the base core\n\nThis function when called triggers a manual panic in the thread containing the runtime, breaking sandboxing\n\nIt can be fixed by stubbing out the exposed op:\n```javascript\nDeno.core.ops.op_panic = (msg) =\u003e { throw new Error(msg) };\n```","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2024-07-18T12:00:00Z","modified":"2025-10-28T06:29:23Z","affected":[{"source":"ghsa","ecosystem":"crates.io","package":"js-sandbox","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.1.6"}]}]},{"source":"osv","ecosystem":"crates.io","package":"js-sandbox","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.1.6"}]}]},{"source":"osv","ecosystem":"crates.io","package":"js-sandbox","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}]}],"references":[{"url":"https://github.com/Bromeon/js-sandbox/issues/31","tags":["web","report"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0403.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-4mw5-2636-4535"},{"url":"https://github.com/Bromeon/js-sandbox","tags":["package"]},{"url":"https://crates.io/crates/js-sandbox","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-4mw5-2636-4535","title":"op_panic in the base runtime can force a panic in the runtime's containing thread","description":"Affected versions use deno_core releases that expose `Deno.core.ops.op_panic` to the JS runtime in the base core\n\nThis function when called triggers a manual panic in the thread containing the runtime, breaking sandboxing\n\nIt can be fixed by stubbing out the exposed op:\n```javascript\nDeno.core.ops.op_panic = (msg) =\u003e { throw new Error(msg) };\n```","status":"published","published":"2024-12-04T18:36:38Z","modified":"2024-12-04T18:36:39Z","updated_at":"2026-11-02T14:38:24.542211Z"}],"osv":[{"id":"GHSA-4mw5-2636-4535","title":"op_panic in the base runtime can force a panic in the runtime's containing thread","description":"Affected versions use deno_core releases that expose `Deno.core.ops.op_panic` to the JS runtime in the base core\n\nThis function when called triggers a manual panic in the thread containing the runtime, breaking sandboxing\n\nIt can be fixed by stubbing out the exposed op:\n```javascript\nDeno.core.ops.op_panic = (msg) =\u003e { throw new Error(msg) };\n```","status":"published","published":"2024-12-04T18:36:38Z","modified":"2025-10-28T06:29:23.047131Z","updated_at":"2026-11-02T15:46:37.148947Z"},{"id":"RUSTSEC-2024-0403","title":"op_panic in the base runtime can force a panic in the runtime's containing thread","description":"Affected versions use deno_core releases that expose `Deno.core.ops.op_panic` to the JS runtime in the base core\n\nThis function when called triggers a manual panic in the thread containing the runtime, breaking sandboxing\n\nIt can be fixed by stubbing out the exposed op:\n```javascript\nDeno.core.ops.op_panic = (msg) =\u003e { throw new Error(msg) };\n```","status":"published","published":"2024-07-18T12:00:00Z","modified":"2025-10-28T06:29:23.047131Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
