diff --git a/vulnerabilities/pipes/osv_v2.py b/vulnerabilities/pipes/osv_v2.py index 4b8ce47c7..265775895 100644 --- a/vulnerabilities/pipes/osv_v2.py +++ b/vulnerabilities/pipes/osv_v2.py @@ -49,6 +49,7 @@ "go": "golang", "hex": "hex", "cargo": "cargo", + "crates.io": "cargo", } OSV_TO_VCIO_SEVERITY_MAP = { diff --git a/vulnerabilities/tests/test_data/osv_test/github/github-expected-4.json b/vulnerabilities/tests/test_data/osv_test/github/github-expected-4.json index bb5d4d5ab..10b708218 100644 --- a/vulnerabilities/tests/test_data/osv_test/github/github-expected-4.json +++ b/vulnerabilities/tests/test_data/osv_test/github/github-expected-4.json @@ -2,7 +2,22 @@ "advisory_id": "GHSA-wjxc-pjx9-4wvm", "aliases": [], "summary": "Nervos CKB Panic on malformed input\n### Impact\nCKB process will panic when received malformed p2p message because of snappy, which is used to compress network messages\n\n### References\nhttps://github.com/BurntSushi/rust-snappy/issues/29", - "affected_packages": [], + "affected_packages": [ + { + "package": { + "type": "cargo", + "namespace": "", + "name": "ckb", + "version": "", + "qualifiers": "", + "subpath": "" + }, + "affected_version_range": "vers:cargo/<=0.34.1", + "fixed_version_range": "vers:cargo/0.34.2", + "introduced_by_commit_patches": [], + "fixed_by_commit_patches": [] + } + ], "references": [ { "reference_id": "",