Versions of larvitbase-api prior to 0.5.4 are vulnerable to an Unintended Require. The package exposes an API endpoint and passes a GET parameter unsanitized to an require() call. This allows attackers to execute any .js file in the same folder as the server is running.
Upgrade to version 0.5.4 or later.
{
"cwe_ids": [
"CWE-829"
],
"github_reviewed": true,
"github_reviewed_at": "2019-09-04T14:29:28Z",
"nvd_published_at": null,
"severity": "HIGH"
}