You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the ratio is a parameter passed to your module, the clients of your libary are not aware of these dangers and may allow arbitrary user input. I suggest refactoring out eval, parse the user input or use a sanitization module like: https://www.npmjs.com/package/eval-sanitizer
The text was updated successfully, but these errors were encountered:
The following use of eval in the file lib/resize.js is unsafe:
Since the ratio is a parameter passed to your module, the clients of your libary are not aware of these dangers and may allow arbitrary user input. I suggest refactoring out eval, parse the user input or use a sanitization module like:
https://www.npmjs.com/package/eval-sanitizer
The text was updated successfully, but these errors were encountered: