Description
SandboxJS is a JavaScript sandboxing library. Prior to 0.9.6, sandbox-defined functions expose Function.caller, allowing sandboxed code to recover the internal LispType.Call runtime callback. That callback can then be invoked with attacker-controlled fake context and obj values to extract blocked host statics, recover the real host Function constructor, and execute arbitrary host JavaScript. This vulnerability is fixed in 0.9.6.
Problem types
CWE-94: Improper Control of Generation of Code ('Code Injection')
Product status
References
github.com/...dboxJS/security/advisories/GHSA-g8f2-4f4f-5jqw
github.com/...dboxJS/security/advisories/GHSA-g8f2-4f4f-5jqw
github.com/...ommit/826865251232611ec94078bab5a18ec875dad4a5