Skip to content
OpenAdvisories
Medium GHSA-fwfx-rrv8-crpf RUSTSEC-2024-0405

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

Published Dec 4, 2024 · Updated Oct 28, 2025 · Assigned by GHSA

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.

It can be fixed by stubbing out the exposed op:
```javascript
Deno.core.ops.op_panic = (msg) => { throw new Error(msg) };
```

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io rustyscript >= 0.4.0, < 0.6.1 0.6.1 GHSA-fwfx-rrv8-crpf
crates.io rustyscript >= 0.3.1-0, < 0.6.1 0.6.1 RUSTSEC-2024-0405

References