Published version of netlify-cms
using eval()
s
#4367
Labels
area: 3rd party dependencies
type: bug
code to address defects in shipped code
type: security
code to address security issues
Describe the bug
netlify-cms
is utilizingeval()
in the published code. Usage ofeval()
is generally frowned upon. It also doesn't seem likeeval()
is necessary in the majority of its usages.I noticed one usage of
eval(str)
which is also frowned upon. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#Never_use_eval!To Reproduce
eval(
Usages:
const utilInspect=eval("require('util').inspect")
eval(str)
var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer")
Expected behavior
No
eval()
s to exist in production code.Applicable Versions:
The text was updated successfully, but these errors were encountered: