| Package | Affected versions | Patched versions |
|---|---|---|
| safe-eval | = 0.0.0= 0.1.0= 0.2.0= 0.3.0 | |
| safe-eval | ≤ 0.3.0 |
Affected versions of safe-eval are vulnerable to a sandbox escape. By accessing object constructors, un-sanitized user input can access the entire standard library and effectively break out of the sandbox.
This code accesses the process object and calls .exit()
var safeEval = require('safe-eval');
safeEval("this.constructor.constructor('return process')().exit()");
Update to version 0.4.0 or later
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free