Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/24673?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/24673?format=api", "purl": "pkg:cargo/array-macro@2.1.0", "type": "cargo", "namespace": "", "name": "array-macro", "version": "2.1.0", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "2.1.2", "latest_non_vulnerable_version": "2.1.2", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/210774?format=api", "vulnerability_id": "VCID-a2nw-dvzm-wuhs", "summary": "`array!` macro is unsound when its length is impure constant", "references": [ { "reference_url": "https://github.com/rustsec/advisory-db/blob/main/crates/array-macro/RUSTSEC-2022-0017.md", "reference_id": "", "reference_type": "", "scores": [ { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/rustsec/advisory-db/blob/main/crates/array-macro/RUSTSEC-2022-0017.md" }, { "reference_url": "https://github.com/xfix/array-macro", "reference_id": "", "reference_type": "", "scores": [ { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/xfix/array-macro" }, { "reference_url": "https://github.com/xfix/array-macro/commit/d5b63f72090f3809c21ac28f9cfd84f12559bf7d", "reference_id": "", "reference_type": "", "scores": [ { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/xfix/array-macro/commit/d5b63f72090f3809c21ac28f9cfd84f12559bf7d" }, { "reference_url": "https://gitlab.com/KonradBorowski/array-macro/-/issues/5", "reference_id": "", "reference_type": "", "scores": [ { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://gitlab.com/KonradBorowski/array-macro/-/issues/5" }, { "reference_url": "https://rustsec.org/advisories/RUSTSEC-2022-0017.html", "reference_id": "", "reference_type": "", "scores": [ { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://rustsec.org/advisories/RUSTSEC-2022-0017.html" }, { "reference_url": "https://github.com/advisories/GHSA-7v4j-8wvr-v55r", "reference_id": "GHSA-7v4j-8wvr-v55r", "reference_type": "", "scores": [ { "value": "MODERATE", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-7v4j-8wvr-v55r" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/24674?format=api", "purl": "pkg:cargo/array-macro@2.1.2", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/array-macro@2.1.2" } ], "aliases": [ "GHSA-7v4j-8wvr-v55r" ], "risk_score": 3.1, "exploitability": "0.5", "weighted_severity": "6.2", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-a2nw-dvzm-wuhs" } ], "fixing_vulnerabilities": [], "risk_score": "3.1", "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/array-macro@2.1.0" }