Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/81988?format=api",
    "purl": "pkg:cargo/zerovec-derive@0.10.0",
    "type": "cargo",
    "namespace": "",
    "name": "zerovec-derive",
    "version": "0.10.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "0.9.7",
    "latest_non_vulnerable_version": "0.10.3",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/341089?format=api",
            "vulnerability_id": "VCID-vr9q-w6wd-b7a9",
            "summary": "zerovec-derive incorrectly uses `#[repr(packed)]`",
            "references": [
                {
                    "reference_url": "https://github.com/rustsec/advisory-db/pull/2007",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/rustsec/advisory-db/pull/2007"
                },
                {
                    "reference_url": "https://github.com/unicode-org/icu4x/issues/5196#issuecomment-2214711069",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/unicode-org/icu4x/issues/5196#issuecomment-2214711069"
                },
                {
                    "reference_url": "https://rustsec.org/advisories/RUSTSEC-2024-0346.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://rustsec.org/advisories/RUSTSEC-2024-0346.html"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-74r5-g7vc-j2v2",
                    "reference_id": "GHSA-74r5-g7vc-j2v2",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-74r5-g7vc-j2v2"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/81989?format=api",
                    "purl": "pkg:cargo/zerovec-derive@0.10.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/zerovec-derive@0.10.3"
                }
            ],
            "aliases": [
                "GHSA-74r5-g7vc-j2v2"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-vr9q-w6wd-b7a9"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/zerovec-derive@0.10.0"
}