Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/212437?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/212437?format=api", "purl": "pkg:npm/pg@6.1.5", "type": "npm", "namespace": "", "name": "pg", "version": "6.1.5", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "6.4.2", "latest_non_vulnerable_version": "7.1.2", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38764?format=api", "vulnerability_id": "VCID-mu5a-vc5u-z7dv", "summary": "Remote Code Execution\nA remote code execution vulnerability was found within the pg module when the remote database or query specifies a specially crafted column name.", "references": [ { "reference_url": "https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerability", "reference_id": "", "reference_type": "", "scores": [], "url": "https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerability" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/53984?format=api", "purl": "pkg:npm/pg@6.1.6", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-yrg7-471n-d3fg" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.1.6" }, { "url": "http://public2.vulnerablecode.io/api/packages/53985?format=api", "purl": "pkg:npm/pg@6.2.5", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-yrg7-471n-d3fg" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.2.5" }, { "url": "http://public2.vulnerablecode.io/api/packages/53986?format=api", "purl": "pkg:npm/pg@6.3.3", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-yrg7-471n-d3fg" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.3.3" }, { "url": "http://public2.vulnerablecode.io/api/packages/53987?format=api", "purl": "pkg:npm/pg@6.4.2", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.4.2" }, { "url": "http://public2.vulnerablecode.io/api/packages/53988?format=api", "purl": "pkg:npm/pg@7.0.2", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-yrg7-471n-d3fg" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@7.0.2" }, { "url": "http://public2.vulnerablecode.io/api/packages/53989?format=api", "purl": "pkg:npm/pg@7.1.2", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@7.1.2" } ], "aliases": [ "GMS-2017-178" ], "risk_score": null, "exploitability": "0.5", "weighted_severity": "0.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-mu5a-vc5u-z7dv" }, { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39804?format=api", "vulnerability_id": "VCID-yrg7-471n-d3fg", "summary": "Code Injection\nA remote code execution vulnerability was found within the pg module when the remote database or query specifies a specially crafted column name. There are 2 likely scenarios in which one would likely be vulnerable. 1) Executing unsafe, user-supplied sql which contains a malicious column name. 2) Connecting to an untrusted database and executing a query which returns results where any of the column names are malicious.", "references": [ { "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2017-16082", "reference_id": "", "reference_type": "", "scores": [ { "value": "0.70815", "scoring_system": "epss", "scoring_elements": "0.98718", "published_at": "2026-06-04T12:55:00Z" } ], "url": "https://api.first.org/data/v1/epss?cve=CVE-2017-16082" }, { "reference_url": "https://github.com/advisories/GHSA-wc9v-mj63-m9g5", "reference_id": "", "reference_type": "", "scores": [ { "value": "9.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" }, { "value": "CRITICAL", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-wc9v-mj63-m9g5" }, { "reference_url": "https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerability", "reference_id": "", "reference_type": "", "scores": [ { "value": "9.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" }, { "value": "CRITICAL", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://node-postgres.com/announcements#2017-08-12-code-execution-vulnerability" }, { "reference_url": "https://www.npmjs.com/advisories/521", "reference_id": "", "reference_type": "", "scores": [ { "value": "9.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" }, { "value": "CRITICAL", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://www.npmjs.com/advisories/521" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16082", "reference_id": "CVE-2017-16082", "reference_type": "", "scores": [ { "value": "9.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" }, { "value": "CRITICAL", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16082" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/53984?format=api", "purl": "pkg:npm/pg@6.1.6", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-yrg7-471n-d3fg" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.1.6" }, { "url": "http://public2.vulnerablecode.io/api/packages/53985?format=api", "purl": "pkg:npm/pg@6.2.5", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-yrg7-471n-d3fg" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.2.5" }, { "url": "http://public2.vulnerablecode.io/api/packages/53986?format=api", "purl": "pkg:npm/pg@6.3.3", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-yrg7-471n-d3fg" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.3.3" }, { "url": "http://public2.vulnerablecode.io/api/packages/53987?format=api", "purl": "pkg:npm/pg@6.4.2", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.4.2" }, { "url": "http://public2.vulnerablecode.io/api/packages/53988?format=api", "purl": "pkg:npm/pg@7.0.2", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-yrg7-471n-d3fg" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@7.0.2" }, { "url": "http://public2.vulnerablecode.io/api/packages/53989?format=api", "purl": "pkg:npm/pg@7.1.2", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@7.1.2" } ], "aliases": [ "CVE-2017-16082", "GHSA-wc9v-mj63-m9g5" ], "risk_score": 4.5, "exploitability": "0.5", "weighted_severity": "9.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-yrg7-471n-d3fg" } ], "fixing_vulnerabilities": [], "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pg@6.1.5" }