GHSA-4mw5-2636-4535 op_panic in the base runtime can force a panic in the runtime's containing thread
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
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) };
Upgrade path
1 package: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io js-sandbox(crates.io) | <= 0.1.6; >= 0.0.0-0 | after 0.1.6 | Partially fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io js-sandbox(crates.io) | <= 0.1.6 | No fix listed |
| crates.io js-sandbox(crates.io) | >= 0.0.0-0 | No fix listed |
References
- github.com issue-tracking
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com