Skip to content

Commit

Permalink
remove 'js/function' support
Browse files Browse the repository at this point in the history
uses new Function(str) which is an eval-type construct
such code is an attack vector and is not allowed e.g. in Firefox add-ons
  • Loading branch information
minj committed May 4, 2016
1 parent 36f8035 commit b34e032
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/js-yaml/schema/default_full.js
Expand Up @@ -20,6 +20,5 @@ module.exports = Schema.DEFAULT = new Schema({
explicit: [
require('../type/js/undefined'),
require('../type/js/regexp'),
require('../type/js/function')
]
});

0 comments on commit b34e032

Please sign in to comment.