SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, The return values of functions arent wrapped. Object.values/Object.entries can be used to get an Array containing the hosts Function constructor, by using Array.prototype.at you can obtain the hosts Function constructor, which can be used to execute arbitrary code outside of the sandbox. This vulnerability is fixed in 0.8.29.
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Sandboxjs | Nyariv | * | 0.8.29 (excluding) |