GHSA-4mw5-2636-4535

Suggest an improvement
Source
https://github.com/advisories/GHSA-4mw5-2636-4535
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-4mw5-2636-4535/GHSA-4mw5-2636-4535.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4mw5-2636-4535
Aliases
Published
2024-12-04T18:36:38Z
Modified
2025-10-28T06:29:23Z
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) };
Database specific
{
    "cwe_ids": [],
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-04T18:36:38Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

crates.io / js-sandbox

Package

Name
js-sandbox
View open source insights on deps.dev
Purl
pkg:cargo/js-sandbox

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
0.1.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-4mw5-2636-4535/GHSA-4mw5-2636-4535.json"