Advisory

RUSTSEC-2024-0403

Also known as: GHSA-4mw5-2636-4535

Summary

op_panic in the base runtime can force a panic in the runtime's containing thread

Details

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) };

Severity

Not rated by the source.

Dates

Published
2024-07-18 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

js-sandbox

crates.io · All systems

Affected

  • introduced 0.0.0-0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences