{ "schema_version": "1.4.0", "id": "GHSA-xf27-jqwv-gf3r", "modified": "2023-09-11T18:33:46Z", "published": "2019-09-11T23:03:57Z", "aliases": [ "CVE-2019-5479" ], "summary": "Unintended Require in larvitbase-api", "details": "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.\n\n\n## Recommendation\n\nUpgrade to version 0.5.4 or later.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N" } ], "affected": [ { "package": { "ecosystem": "npm", "name": "larvitbase-api" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "0.5.5" } ] } ] } ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-5479" }, { "type": "WEB", "url": "https://hackerone.com/reports/566056" }, { "type": "WEB", "url": "https://www.npmjs.com/advisories/1120" } ], "database_specific": { "cwe_ids": [ "CWE-829" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2019-09-04T14:29:28Z", "nvd_published_at": null } }