Advisory

GHSA-fwfx-rrv8-crpf

Also known as: RUSTSEC-2024-0405

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.

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:37 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

rustyscript

crates.io · All systems

Affected

  • introduced 0.4.0, fixed 0.6.1 (semver)

Fixed versions

0.6.1

Fix

  • Fixed version 0.6.1
    cargo update -p rustyscript --precise 0.6.1

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