CVE
GHSA-x8hf-3qx4-x5qc
The SandboxJS scope implementation accepts __proto__ as a variable name: Scope.declare and Scope.set only reject 'this' and reserved words, so sandboxed code can run `var __proto__ = Object` and change the prototype of the scope's variable object, after which bare identifiers resolve to real host Object statics. The Call operation also trusts the evals replacement looked up from the called method, and function arguments and catch bindings accept the same name. Untrusted code in a default sandbox can chain these to reach the host Function constructor, escaping the sandbox and running arbitrary host code.
Package Versions Affected
Package Version
patch Availability
No items found.
Automatically patch vulnerabilities without upgrading
Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request
CVSS Version
Severity
Base Score
CVSS Version
Score Vector

C
H
U
-

C
H
U
-

C
H
U
10
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Related Resources
No items found.
References
https://github.com/nyariv/SandboxJS/security/advisories/GHSA-x8hf-3qx4-x5qc, https://github.com/nyariv/SandboxJS/commit/11790c482ab57c8fe1d9184b77b2457c416f0669