Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/269171?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/269171?format=api", "purl": "pkg:npm/sql-injection@0.0.4", "type": "npm", "namespace": "", "name": "sql-injection", "version": "0.0.4", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": null, "latest_non_vulnerable_version": null, "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53248?format=api", "vulnerability_id": "VCID-fzhu-991c-akgr", "summary": "Regular Expression Denial of Service in sql-injection\nAll versions of `sql-injection` are vulnerable to Regular Expression Denial of Service. The package processes a request's body with regular expressions that may take exponentially longer to execute for large inputs. No fix is currently available. Consider using an alternative package until a fix is made available.", "references": [ { "reference_url": "https://www.npmjs.com/advisories/1163", "reference_id": "", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://www.npmjs.com/advisories/1163" }, { "reference_url": "https://github.com/advisories/GHSA-hvxq-j2r4-4jm8", "reference_id": "GHSA-hvxq-j2r4-4jm8", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-hvxq-j2r4-4jm8" } ], "fixed_packages": [], "aliases": [ "GHSA-hvxq-j2r4-4jm8", "GMS-2020-526" ], "risk_score": 4.0, "exploitability": "0.5", "weighted_severity": "8.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-fzhu-991c-akgr" } ], "fixing_vulnerabilities": [], "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sql-injection@0.0.4" }