{"url":"http://public2.vulnerablecode.io/api/packages/430020?format=json","purl":"pkg:npm/gun@0.3.9991","type":"npm","namespace":"","name":"gun","version":"0.3.9991","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"0.2019.416","latest_non_vulnerable_version":"0.2019.416","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/48541?format=json","vulnerability_id":"VCID-qw5p-29td-3ygu","summary":"High severity vulnerability that affects gun\n## Urgent Upgrade\n\nThe static file server module included with GUN had a **serious vulnerability**:\n\n - Using `curl --path-as-is` allowed reads on any parent directory or files.\n\nThis did not work via the browser or via curl without as-is option.\n\n ### Fixed\n\nThis has been fixed since version `0.2019.416` and higher.\n\n ### Who Was Effected?\n\nMost NodeJS users who use the default setup, such as:\n\n - `npm start`\n - `node examples/http.js`\n - `Heroku` 1-click-deploy\n - `Docker`\n - `Now`\n\nIf you have a custom NodeJS code then you are probably safe *unless* you have something like `require('http').createServer(Gun.serve(__dirname))` in it.\n\nIf you have not upgraded, it is **mandatory** or else it is highly likely your environment variables and AWS (or other) keys could be leaked.\n\n ### Credit\n\nIt was reported and fixed by [JK0N](https://github.com/amark/gun/pull/527), but I did not understand the `--path-as-is` condition.\n\nJoonas Loppi from [function61](http://function61.com) rediscovered it and explained the urgency to me to fix it.","references":[{"reference_url":"https://github.com/advisories/GHSA-886v-mm6p-4m66","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-886v-mm6p-4m66"},{"reference_url":"https://github.com/amark/gun","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/amark/gun"},{"reference_url":"https://github.com/amark/gun/security/advisories/GHSA-886v-mm6p-4m66","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/amark/gun/security/advisories/GHSA-886v-mm6p-4m66"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/83641?format=json","purl":"pkg:npm/gun@0.2019.416","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/gun@0.2019.416"}],"aliases":["GHSA-886v-mm6p-4m66","GMS-2019-29"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-qw5p-29td-3ygu"}],"fixing_vulnerabilities":[],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/gun@0.3.9991"}