Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/215366?format=api",
    "purl": "pkg:npm/serve-here@2.6.10",
    "type": "npm",
    "namespace": "",
    "name": "serve-here",
    "version": "2.6.10",
    "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/41154?format=api",
            "vulnerability_id": "VCID-4ssu-jq4h-ruct",
            "summary": "Relative Path Traversal in serve-here.",
            "references": [
                {
                    "reference_url": "https://github.com/vivaxy/here/commit/298dbab41344dfb7f95f66b1fa7b5cfb436bd4a2",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/vivaxy/here/commit/298dbab41344dfb7f95f66b1fa7b5cfb436bd4a2"
                },
                {
                    "reference_url": "https://github.com/vivaxy/here/pull/17",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/vivaxy/here/pull/17"
                },
                {
                    "reference_url": "https://hackerone.com/reports/296254",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://hackerone.com/reports/296254"
                },
                {
                    "reference_url": "https://hackerone.com/reports/569966",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://hackerone.com/reports/569966"
                },
                {
                    "reference_url": "https://nodesecurity.io/advisories/554",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nodesecurity.io/advisories/554"
                },
                {
                    "reference_url": "https://www.npmjs.com/advisories/554",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.npmjs.com/advisories/554"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-g8m7-qhv7-9h5x",
                    "reference_id": "GHSA-g8m7-qhv7-9h5x",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-g8m7-qhv7-9h5x"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "GHSA-g8m7-qhv7-9h5x",
                "GMS-2019-140"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-4ssu-jq4h-ruct"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39303?format=api",
            "vulnerability_id": "VCID-mh2m-vfgy-sqhr",
            "summary": "Directory Traversal\nserve-here is vulnerable to a directory traversal attack. This means that files on the local file system which exist outside of the web root may be disclosed to an attacker. This might include confidential files. Mitigating Factors: if the node process is run as a user with very limited filesystem permissions, there is significantly less risk of exposing confidential/private information.",
            "references": [
                {
                    "reference_url": "https://github.com/vivaxy/here/commit/298dbab41344dfb7f95f66b1fa7b5cfb436bd4a2",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/vivaxy/here/commit/298dbab41344dfb7f95f66b1fa7b5cfb436bd4a2"
                },
                {
                    "reference_url": "https://hackerone.com/reports/296254",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://hackerone.com/reports/296254"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "GMS-2018-1"
            ],
            "risk_score": null,
            "exploitability": "0.5",
            "weighted_severity": "0.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-mh2m-vfgy-sqhr"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/serve-here@2.6.10"
}