We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the usage of "new Function()" requires to increase the CSP to 'unsafe-eval'
code:
function tryConvertExpr(string) { // PENDING var exprRes = /^expr\((.*)\)$/.exec(string); if (exprRes) { try { var func = new Function('width', 'height', 'dpr', 'return ' + exprRes[1]); // Try run t func(1, 1); return func; } catch (e) { throw new Error('Invalid expression.'); } } }
Please replace the usage(s) of new Function with safer methods
The text was updated successfully, but these errors were encountered:
Ditto. This is a security issue and blocker for us.
Sorry, something went wrong.
Update: the code is actually in a dependency of echarts-gl, claygl.
The insecure code is here: https://github.com/pissang/claygl/blob/master/src/createCompositor.js#L294
Related issue in that repository is here: pissang/claygl#133
No branches or pull requests
the usage of "new Function()" requires to increase the CSP to 'unsafe-eval'
code:
Please replace the usage(s) of new Function with safer methods
The text was updated successfully, but these errors were encountered: