Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: query vulnerabilities by cve id #1016

Open
huanceng opened this issue Feb 10, 2023 · 8 comments
Open

API: query vulnerabilities by cve id #1016

huanceng opened this issue Feb 10, 2023 · 8 comments
Labels
api API-related infrastructure backlog Important but currently unprioritized enhancement New feature or request

Comments

@huanceng
Copy link

The current api /v1/vulns/{id} returns a vulnerability object for a given OSV ID. If a cve id is given, the api will return Bug not found.

For example, GHSA-h592-38cm-4ggp and its corresponding cve id CVE-2017-15095.

Do you plan to develop such an API?

@oliverchang
Copy link
Collaborator

This does sound useful thanks, tracking as a FR.

@oliverchang oliverchang added enhancement New feature or request api API-related infrastructure labels Feb 20, 2023
@rdeepc
Copy link

rdeepc commented Mar 2, 2023

Hi @oliverchang,

I am interested in working on this.

@andrewpollock
Copy link
Contributor

More abstractly, it sounds like you're wishing for the /v1/vulns{id} endpoint to support lookups by alias as well as the primary ID?

@huanceng
Copy link
Author

Hi @andrewpollock , /v1/vulns/{id} or a new endpoint are both acceptable.

@andrewpollock
Copy link
Contributor

Some interim thoughts to improve this user experience:

$ GET -s https://api.osv.dev/v1/vulns/CVE-2025-0001
404 Not Found
{"code":5,"message":"Bug not found."}

Copy link

This issue has not had any activity for 60 days and will be automatically closed in two weeks

@github-actions github-actions bot added the stale The issue or PR is stale and pending automated closure label Jul 26, 2024
@andrewpollock
Copy link
Contributor

Related: #760

@github-actions github-actions bot removed the stale The issue or PR is stale and pending automated closure label Jul 30, 2024
Copy link

This issue has not had any activity for 60 days and will be automatically closed in two weeks

See https://github.com/google/osv.dev/blob/master/CONTRIBUTING.md for how to contribute a PR if you're interested in helping out.

@github-actions github-actions bot added the stale The issue or PR is stale and pending automated closure label Sep 28, 2024
@oliverchang oliverchang added backlog Important but currently unprioritized and removed stale The issue or PR is stale and pending automated closure labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API-related infrastructure backlog Important but currently unprioritized enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants