sandbox@1.0.6 vulnerabilities

Vercel Sandbox is an ephemeral compute primitive designed to safely run untrusted or user-generated code on Vercel. It supports dynamic, real-time workloads for AI agents, code generation, and developer experimentation.

  • latest version

    1.0.6

  • first published

    14 years ago

  • latest version published

    9 days ago

  • licenses detected

    • >=1.0.5 <2.0.0-alpha2
  • Direct Vulnerabilities

    Known vulnerabilities in the sandbox package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Arbitrary Code Execution

    sandbox is a nifty javascript sandbox for node.js.

    Affected versions of the package are vulnerable to Arbitrary Code Execution. It is possible to escape the sandbox by using a combination of functions and constructors, allowing an attacker access to a process with root permissions, and load modules of their choosing in order to execute malicious code.

    PoC by io Void:

    new Function("
      return (
        this.constructor.constructor('
          return (this.process.mainModule.constructor._load
         )'
        )())"
      )()
    ("util").inspect("hi")
    

    How to fix Arbitrary Code Execution?

    There is no fix version for sandbox.

    *