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

Easier API access to CVE descriptions #157

Open
polynomialspace opened this issue Jun 12, 2019 · 3 comments
Open

Easier API access to CVE descriptions #157

polynomialspace opened this issue Jun 12, 2019 · 3 comments

Comments

@polynomialspace
Copy link

Currently /all.json provides bulk access to public CVE/advisory data, but does not include CVE descriptions; descriptions appear to only be available via individual CVE or advisory pages, which makes a rather inefficient process if one wishes to gather such data.

@RijulGulati
Copy link
Contributor

When we visit /all.json, the main JSON received is:

{
    "name": "AVG-2",
    "packages": [
      "test"
    ],
    "status": "Vulnerable",
    "severity": "Critical",
    "type": "authentication bypass",
    "affected": "1.0",
    "fixed": "1.1",
    "ticket": null,
    "issues": [
      "CVE-2020-25639"
    ],
    "advisories": []
  }

The CVE description should go inside issues[] right ..? And if that's the case, we'd need to create a json obj in issues[] as well ..? Something like: { id: "CVE-2020-25639", "description": "Some desc here" } maybe?

@anthraxx
Copy link
Member

yes, but the issue here is that this will break API compatibility. while you could already implement this in a PR, we may first need to land a versioned API before applying it.

@RijulGulati
Copy link
Contributor

I see. I think it'll be better if this is implemented after API versioning is done. Out of curiosity, will it be something like /v1/all.json, /v2/all.json? Is API versioning enhancement being tracked somewhere? Maybe I could refer it and chip in ..?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants