Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. realms-shim
  4. ›
  5. GMS-2019-49

GMS-2019-49: Sandbox Breakout in realms-shim

October 21, 2019 (updated September 2, 2021)

Versions of realms-shim 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. Upgrade to or later.

References

  • github.com/Agoric/realms-shim/security/advisories/GHSA-7cg8-pq9v-x98q
  • github.com/advisories/GHSA-7cg8-pq9v-x98q
  • snyk.io/vuln/SNYK-JS-REALMSSHIM-536069
  • www.npmjs.com/advisories/1218

Code Behaviors & Features

Detect and mitigate GMS-2019-49 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.1

Fixed versions

  • 1.2.1

Solution

Upgrade to version 1.2.1 or above.

Source file

npm/realms-shim/GMS-2019-49.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:20 +0000.