Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/238319?format=api",
    "purl": "pkg:npm/esm@3.0.52",
    "type": "npm",
    "namespace": "",
    "name": "esm",
    "version": "3.0.52",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "3.1.0",
    "latest_non_vulnerable_version": "3.1.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41109?format=api",
            "vulnerability_id": "VCID-v5tp-97d2-q3g3",
            "summary": "A Regular Expression Denial of Service vulnerability was discovered in esm The issue is that esm's find-indexes is using the unescaped identifiers in a regex, which, in this case, causes an infinite loop.",
            "references": [
                {
                    "reference_url": "https://github.com/standard-things/esm/commit/c41e001d81a5a52b0d2d1722b1c2af04d997c05b",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/standard-things/esm/commit/c41e001d81a5a52b0d2d1722b1c2af04d997c05b"
                },
                {
                    "reference_url": "https://github.com/standard-things/esm/issues/694",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/standard-things/esm/issues/694"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-qx4v-6gc5-f2vv",
                    "reference_id": "GHSA-qx4v-6gc5-f2vv",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-qx4v-6gc5-f2vv"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/58238?format=api",
                    "purl": "pkg:npm/esm@3.1.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/esm@3.1.0"
                }
            ],
            "aliases": [
                "GHSA-qx4v-6gc5-f2vv",
                "GMS-2019-22"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-v5tp-97d2-q3g3"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "3.1",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/esm@3.0.52"
}