GHSA-7cg8-pq9v-x98q

Suggest an improvement
Source
https://github.com/advisories/GHSA-7cg8-pq9v-x98q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/10/GHSA-7cg8-pq9v-x98q/GHSA-7cg8-pq9v-x98q.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7cg8-pq9v-x98q
Published
2019-10-21T21:58:55Z
Modified
2021-09-02T21:14:19Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Sandbox Breakout in realms-shim
Details

Versions of realms-shim prior to 1.2.1 are vulnerable to a Sandbox Breakout. The Realms evaluation function has an option to apply Babel-like transformations to the source code before it reaches the evaluator. One portion of this transform pipeline exposed a primal-Realm object to the rewriting function. Confined code which used the evaluator itself could provide a malicious rewriter function that captured this object, and use it to breach the sandbox.

Recommendation

Upgrade to version 1.2.1 or later.

Database specific
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-06-16T21:22:25Z",
    "nvd_published_at":  null,
    "severity":  "CRITICAL"
}
References

Affected packages

npm / realms-shim

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.2.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/10/GHSA-7cg8-pq9v-x98q/GHSA-7cg8-pq9v-x98q.json"