Advisory

GHSA-4mw5-2636-4535

Also known as: RUSTSEC-2024-0403

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-12-04 18:36 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

js-sandbox

crates.io · All systems

Affected

  • introduced 0, last affected 0.1.6 (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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences