{"id":"GHSA-4mw5-2636-4535","aliases":["GHSA-4mw5-2636-4535","RUSTSEC-2024-0403"],"related":[],"kind":"vulnerability","state":"published","title":"op_panic in the base runtime can force a panic in the runtime's containing thread","summary":"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) => { throw new Error(msg) };\n```","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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) => { throw new Error(msg) };\n```","format":"markdown","source":"ghsa"}],"published":"2024-07-18T12:00:00.000Z","modified":"2025-10-28T06:29:23.047Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.1.6"}],"ecosystem":"crates.io","package":"js-sandbox","purl":"pkg:cargo/js-sandbox","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"js-sandbox","purl":"pkg:cargo/js-sandbox","source":"rustsec"}],"references":[{"url":"https://github.com/Bromeon/js-sandbox/issues/31","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Bromeon/js-sandbox","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0403.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/js-sandbox","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4mw5-2636-4535","url":"https://github.com/advisories/GHSA-4mw5-2636-4535","licence":"CC-BY-4.0","modified":"2025-10-28T06:29:23.047Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2024-0403","url":"https://rustsec.org/advisories/RUSTSEC-2024-0403.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:23.047Z"}],"updatedAt":"2026-11-25T22:56:43.225Z"}