Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/236637?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/236637?format=api", "purl": "pkg:npm/gun@0.8.4", "type": "npm", "namespace": "", "name": "gun", "version": "0.8.4", "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/41050?format=api", "vulnerability_id": "VCID-7hf7-kmdc-bkf3", "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/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/advisories/GHSA-886v-mm6p-4m66", "reference_id": "GHSA-886v-mm6p-4m66", "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/security/advisories/GHSA-886v-mm6p-4m66", "reference_id": "GHSA-886v-mm6p-4m66", "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/58161?format=api", "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": 4.0, "exploitability": "0.5", "weighted_severity": "8.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-7hf7-kmdc-bkf3" } ], "fixing_vulnerabilities": [], "risk_score": "4.0", "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/gun@0.8.4" }