deepsourcestatus / test-repository

Vulnerable VM code execution JS-S0011
Security
Critical
8 months ago8 months old
Function call is vulnerable to remote code execution
 82      throw "Bad input" // <- Literal 'throw' not supported by runtime
 83    }
 84
 85    const runResult = vm.run(code) // <- vulnerable to code injection 86    res.json(runResult)
 87    res.end()
 88  } catch (err) {