Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix sandbox breakout vulnerability
This fixes the vulnerability detailed in this advisory:
https://www.npmjs.com/advisories/758
  • Loading branch information
cript0nauta committed Feb 14, 2019
1 parent 5bba790 commit 32f8efd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -135,6 +135,7 @@ module.exports = function (ast, vars) {
if(key.type == 'Identifier'){
vars[key.name] = null;
}
else return FAIL;
});
for(var i in bodies){
if(walk(bodies[i]) === FAIL){
Expand Down

0 comments on commit 32f8efd

Please sign in to comment.