Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

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.
Back to all
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

Severity

10

CVSS Score
0
10

Basic Information

Base CVSS
10
EPSS Probability
0%
EPSS Percentile
0%
Introduced Version
0.9.2,0.9.0,0.8.34
Fix Available
0.9.7

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading