Skip to content

Map the OSV crates.io ecosystem to cargo - #2486

Open
Ashutosh-Panda2004 wants to merge 1 commit into
aboutcode-org:mainfrom
Ashutosh-Panda2004:fix-osv-crates-io-mapping
Open

Ashutosh-Panda2004 wants to merge 1 commit into
aboutcode-org:mainfrom
Ashutosh-Panda2004:fix-osv-crates-io-mapping

Conversation

@Ashutosh-Panda2004

@Ashutosh-Panda2004 Ashutosh-Panda2004 commented Oct 27, 2026 •

Copy link
Copy Markdown

Fixes #2485

OSV calls the Rust ecosystem crates.io, but PURL_TYPE_BY_OSV_ECOSYSTEM in vulnerabilities/importers/osv.py only had a cargo key, so the lookup failed for every real crates.io advisory and the affected entry was skipped.

I added a "crates.io": "cargo" entry to the mapping, keeping the existing cargo key, and added a regression test where a crates.io advisory for serde produces pkg:cargo/serde with its fixed version.

Signed-off-by: Ashutosh Panda [email protected]

OSV calls the Rust ecosystem crates.io, but the ecosystem mapping only had a cargo key, so every crates.io affected entry was skipped.

Signed-off-by: Ashutosh Panda <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OSV parser drops all crates.io affected entries because the ecosystem mapping uses cargo

1 participant