Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/512620?format=api",
    "purl": "pkg:cargo/ckb@0.101.0",
    "type": "cargo",
    "namespace": "",
    "name": "ckb",
    "version": "0.101.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "0.101.1",
    "latest_non_vulnerable_version": "0.102.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/110298?format=api",
            "vulnerability_id": "VCID-55jq-13jj-fbfq",
            "summary": "ckb: Transaction header_deps validation issue (network forking)\n### Impact\nfn `HeaderChecker#check_valid` skipped main chain checking after this PR: https://github.com/nervosnetwork/ckb/pull/1646/files#diff-c4e017b67c1b3005ca0c446a9b0879571aa36a858b1f7ddd1b9328a884e3214bR171-R176\n\nIt will cause network forking if one transaction is using a forked block header which is not exists in local node's storage.\n\n### Patches\n\n0.101.1 and later versions",
            "references": [
                {
                    "reference_url": "https://github.com/nervosnetwork/ckb",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/nervosnetwork/ckb"
                },
                {
                    "reference_url": "https://github.com/nervosnetwork/ckb/pull/1646/files#diff-c4e017b67c1b3005ca0c446a9b0879571aa36a858b1f7ddd1b9328a884e3214bR171-R176",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/nervosnetwork/ckb/pull/1646/files#diff-c4e017b67c1b3005ca0c446a9b0879571aa36a858b1f7ddd1b9328a884e3214bR171-R176"
                },
                {
                    "reference_url": "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-7fw6-6mfj-g3q2",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-7fw6-6mfj-g3q2"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-7fw6-6mfj-g3q2",
                    "reference_id": "GHSA-7fw6-6mfj-g3q2",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-7fw6-6mfj-g3q2"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/512621?format=api",
                    "purl": "pkg:cargo/ckb@0.101.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/ckb@0.101.1"
                }
            ],
            "aliases": [
                "GHSA-7fw6-6mfj-g3q2"
            ],
            "risk_score": 4.5,
            "exploitability": "0.5",
            "weighted_severity": "9.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-55jq-13jj-fbfq"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.5",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/ckb@0.101.0"
}