Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/211720?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/211720?format=api", "purl": "pkg:npm/openwhisk@2.3.0", "type": "npm", "namespace": "", "name": "openwhisk", "version": "2.3.0", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "3.3.1", "latest_non_vulnerable_version": "3.3.1", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53056?format=api", "vulnerability_id": "VCID-c3t5-82ea-5yh6", "summary": "Remote Memory Exposure in openwhisk\nVersions of `openwhisk` before 3.3.1 are vulnerable to remote memory exposure.\n\nWhen a number is passed to `api_key`, affected versions of `openwhisk` allocate an uninitialized buffer and send that over network in Authorization header (base64-encoded).\n\nProof of concept:\n\n```js\nvar openwhisk = require('openwhisk');\nvar options = {\n apihost: '127.0.0.1:1433', \n api_key: USERSUPPLIEDINPUT // number\n};\nvar ow = openwhisk(options);\now.actions.invoke({actionName: 'sample'}).then(result => console.log(result))\n```\n\n\n## Recommendation\n\nUpdate to version 3.3.1 or later.", "references": [ { "reference_url": "https://github.com/openwhisk/openwhisk-client-js", "reference_id": "", "reference_type": "", "scores": [ { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/openwhisk/openwhisk-client-js" }, { "reference_url": "https://github.com/openwhisk/openwhisk-client-js/pull/34", "reference_id": "", "reference_type": "", "scores": [ { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/openwhisk/openwhisk-client-js/pull/34" }, { "reference_url": "https://www.npmjs.com/advisories/600", "reference_id": "", "reference_type": "", "scores": [ { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://www.npmjs.com/advisories/600" }, { "reference_url": "https://github.com/advisories/GHSA-53mj-mc38-q894", "reference_id": "GHSA-53mj-mc38-q894", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-53mj-mc38-q894" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/78044?format=api", "purl": "pkg:npm/openwhisk@3.3.1", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/openwhisk@3.3.1" } ], "aliases": [ "GHSA-53mj-mc38-q894", "GMS-2020-756" ], "risk_score": null, "exploitability": null, "weighted_severity": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-c3t5-82ea-5yh6" }, { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38703?format=api", "vulnerability_id": "VCID-d7bp-wvzb-8ycd", "summary": "Error clearly exposes the database credentials\nWhen access is denied, `mysql_pconnect()` raises a warning that exposes the user credentials.", "references": [ { "reference_url": "https://cwe.mitre.org/data/definitions/201.html", "reference_id": "", "reference_type": "", "scores": [], "url": "https://cwe.mitre.org/data/definitions/201.html" }, { "reference_url": "https://github.com/apache/incubator-openwhisk-client-js/commit/0e40671e75d2ec7e88fa39ef787526d4304f2aaa", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/apache/incubator-openwhisk-client-js/commit/0e40671e75d2ec7e88fa39ef787526d4304f2aaa" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/53827?format=api", "purl": "pkg:npm/openwhisk@3.2.1", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-c3t5-82ea-5yh6" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/openwhisk@3.2.1" } ], "aliases": [ "CWE-201" ], "risk_score": null, "exploitability": null, "weighted_severity": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-d7bp-wvzb-8ycd" } ], "fixing_vulnerabilities": [], "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/openwhisk@2.3.0" }