vulnersCom / api

Vulners Python API wrapper
GNU General Public License v3.0
356 stars 60 forks source link

Search query returns incomplete data. #23

Closed nimish38 closed 3 years ago

nimish38 commented 3 years ago

Hi,

For getting the data in enchantments -> dependencies -> references, following is my source code: vulners_api = vulners.Vulners(api_key=my_key) CVE_data = vulners_api.document("CVE-2020-11651") print(CVE_data)

but the result I get is: {'lastseen': '2020-10-03T12:55:48', 'bulletinFamily': 'NVD', 'description': 'An issue was discovered in SaltStack Salt before 2019.2.4 and 3000 before 3000.2. The salt-master process ClearFuncs class does not properly validate method calls. This allows a remote user to access some methods without authentication. These methods can be used to retrieve user tokens from the salt master and/or run arbitrary commands on salt minions.', 'modified': '2020-08-20T01:17:00', 'id': 'CVE-2020-11651', 'published': '2020-04-30T17:15:00', 'href': 'https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-11651', 'title': 'CVE-2020-11651', 'type': 'cve', 'cvss': {'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P'}, 'enchantments': {'vulnersScore': 'PENDING'}}

vulnersCom commented 3 years ago

Hi,

Try this one way:

vulners_api = vulners.Vulners(api_key=my_key) CVE_data = vulners_api.document("CVE-2020-11651", fields=["*"]) print(CVE_data)