Lookup for vulnerable packages by Package URL.

GET /api/packages/210915?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/packages/210915?format=api",
    "purl": "pkg:npm/pidusage@0.0.4",
    "type": "npm",
    "namespace": "",
    "name": "pidusage",
    "version": "0.0.4",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.1.5",
    "latest_non_vulnerable_version": "1.1.5",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53014?format=api",
            "vulnerability_id": "VCID-ba2z-xjzy-xbep",
            "summary": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in pidusage.",
            "references": [
                {
                    "reference_url": "https://www.npmjs.com/advisories/356",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.npmjs.com/advisories/356"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16034",
                    "reference_id": "CVE-2017-16034",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16034"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-hfq9-rfpv-j8r8",
                    "reference_id": "GHSA-hfq9-rfpv-j8r8",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-hfq9-rfpv-j8r8"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/53659?format=api",
                    "purl": "pkg:npm/pidusage@1.1.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pidusage@1.1.5"
                }
            ],
            "aliases": [
                "CVE-2017-16034",
                "GHSA-hfq9-rfpv-j8r8",
                "GMS-2020-757"
            ],
            "risk_score": 4.5,
            "exploitability": "0.5",
            "weighted_severity": "9.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ba2z-xjzy-xbep"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38642?format=api",
            "vulnerability_id": "VCID-zqxw-jzqq-akfw",
            "summary": "Command Injection\nThe pidusage module passes unsanitized input to child_process.exec, resulting in command injection in the ps method, as the pid is never cast to an integer as the comment expects. This module is vulnerable to this PoC on Darwin, SunOS, FreeBSD, and AIX. Windows and Linux are not vulnerable.",
            "references": [],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/53659?format=api",
                    "purl": "pkg:npm/pidusage@1.1.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pidusage@1.1.5"
                }
            ],
            "aliases": [
                "GMS-2017-137"
            ],
            "risk_score": null,
            "exploitability": "0.5",
            "weighted_severity": "0.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-zqxw-jzqq-akfw"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/pidusage@0.0.4"
}