Current the validator checks for potentially dangerous imports by matching strings, however this could pose problems when those libraries are used non-malliciously. Alternatively if the import statement are within a string or a commented part of code then also the execution is denied which is not ideal.
Refer: https://github.com/nafees87n/codebox#code-validation
Validator function: https://github.com/nafees87n/codebox/blob/main/server/lib/valid.js
Current the validator checks for potentially dangerous imports by matching strings, however this could pose problems when those libraries are used non-malliciously. Alternatively if the import statement are within a string or a commented part of code then also the execution is denied which is not ideal.
Refer: https://github.com/nafees87n/codebox#code-validation
Validator function: https://github.com/nafees87n/codebox/blob/main/server/lib/valid.js