Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/270778?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/270778?format=api", "purl": "pkg:npm/mongodb@3.1.1", "type": "npm", "namespace": "", "name": "mongodb", "version": "3.1.1", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "3.1.13", "latest_non_vulnerable_version": "5.8.0", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53382?format=api", "vulnerability_id": "VCID-43zh-86vw-tkc2", "summary": "Denial of Service in mongodb\nVersions of `mongodb` are vulnerable to Denial of Service. The package fails to properly catch an exception when a collection name is invalid and the DB does not exist, crashing the application. Upgrade to or later.", "references": [ { "reference_url": "https://www.npmjs.com/advisories/1203", "reference_id": "", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://www.npmjs.com/advisories/1203" }, { "reference_url": "https://github.com/advisories/GHSA-mh5c-679w-hh4r", "reference_id": "GHSA-mh5c-679w-hh4r", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-mh5c-679w-hh4r" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/78438?format=api", "purl": "pkg:npm/mongodb@3.1.13", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/mongodb@3.1.13" } ], "aliases": [ "GHSA-mh5c-679w-hh4r", "GMS-2020-389" ], "risk_score": null, "exploitability": null, "weighted_severity": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-43zh-86vw-tkc2" } ], "fixing_vulnerabilities": [], "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/mongodb@3.1.1" }