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.test.osv.dev/v1/vulns/GHSA-4mw5-2636-4535
Published
2024-12-04T18:36:38Z
Modified
2024-12-04T18:36:38Z
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
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-04T18:36:38Z"
}
References

Affected packages

crates.io / js-sandbox

Package

Affected ranges

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