This library used for searching cve by package name and version using SNYK database. Basically it parse HTML from SNYK page
Project description
SnykVulndb is library that used to check CVE for specific library by given library category (pip,npm,maven,composer), library name, and library by extracting html response from snyk.io page without any API-Key or registration.
Disclaimer This library is not official library from snyk. Use it as is without any guarantee or warranty. Your use of information from this library is at your own risk
How to Use
Installation
pip install SnykVulndb
Usage
from SnykVulndb.CveChecker import CveChecker
checker = CveChecker()
##example
# checker.getCveList(category,package_name,package_version)
checker.getCveList('pip','tensorflow','2.4.0')
[{'id': 'CVE-2021-41214', 'score': '7.8'}, {'id': 'CVE-2021-41209', 'score': '5.5'}, {'id': 'CVE-2021-41199', 'score': '5.5'}, {'id': 'CVE-2021-41198', 'score': '5.5'}, {'id': 'CVE-2021-41197', 'score': '5.5'}, {'id': 'CVE-2021-41196', 'score': '5.5'}, {'id': 'CVE-2021-41200', 'score': '5.5'}, {'id': 'CVE-2021-41223', 'score': '7.1'}, {'id': 'CVE-2021-41205', 'score': '7.1'}, {'id': 'CVE-2021-41224', 'score': '7.1'}, {'id': 'CVE-2021-41216', 'score': '5.5'}, {'id': 'CVE-2021-41211', 'score': '7.1'}, {'id': 'CVE-2021-41201', 'score': '7.8'}, {'id': 'CVE-2021-41210', 'score': '7.1'}, {'id': 'CVE-2021-41204', 'score': '5.5'}, {'id': 'CVE-2021-41219', 'score': '7.8'}, {'id': 'CVE-2021-41215', 'score': '5.5'}, {'id': 'CVE-2021-41212', 'score': '7.1'}, {'id': 'CVE-2021-41221', 'score': '7.8'}, {'id': 'CVE-2021-41203', 'score': '7.8'}, {'id': 'CVE-2021-41213', 'score': '5.5'}, {'id': 'CVE-2021-41207', 'score': '5.5'}, {'id': 'CVE-2021-41227', 'score': '6.6'}, {'id': 'CVE-2021-41208', 'score': '8.8'}, {'id': 'CVE-2021-41202', 'score': '5.5'}]
Currently, supported categories are: pip, composer, npm, and maven
Contact
mail: aryya.widigdha@yahoo.com
License
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file SnykVulndb-0.1.2.tar.gz
.
File metadata
- Download URL: SnykVulndb-0.1.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd8f26edc55994cd238bac7def10139702bc1c46f1da42afde46d234156a88b |
|
MD5 | 1107274d764742d7d702256dc4e73151 |
|
BLAKE2b-256 | 3b936f7ed1a1916ab6aa5f7d12e687b8a593e5078b819cbdd59c35839ecb5f27 |