
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
This library provides functionality for fetching and parsing information about Common Vulnerabilities and Exposures (CVE) using the NIST National Vulnerability Database (NVD) RESTful API.
This library provides functionality for fetching and parsing information about Common Vulnerabilities and Exposures (CVE) using the NIST National Vulnerability Database (NVD) RESTful API.
pip install cveutils
To use this library, simply import the CVE class and initialize an instance with a CVE ID as a string.
from cveutils import CVE
cve = CVE('CVE-2021-12345')
The CVE
object has the following attributes:
ID
: The CVE IDinfo
: The full JSON response from the NVD API for the given CVE IDdescription
: The description of the CVEcvss_v2
: A dictionary containing the CVSSv2 score and related metrics (if available)cvss_v3
: A dictionary containing the CVSSv3 score and related metrics (if available)published_date
: The published date of the CVE in ISO format (YYYY-MM-DD)last_modified_date
: The last modified date of the CVE in ISO format (YYYY-MM-DD)assigner
: The organization that assigned the CVE IDreferences
: A list of references related to the CVEThe cvss_v2
and cvss_v3
attributes are instances of the CVSSDictionary class, which allows access to the dictionary keys as attributes.
from cveutils import CVE
cve = CVE('CVE-2021-12345')
print(cve.ID)
print(cve.description)
print(cve.cvss_v3.baseScore)
print(cve.published_date)
print(cve.last_modified_date)
print(cve.assigner)
print(cve.references)
Output:
CVE-2021-12345
Description of the vulnerability
7.8
2021-01-01
2021-02-01
MITRE
['https://example.com/reference1', 'https://example.com/reference2']
FAQs
This library provides functionality for fetching and parsing information about Common Vulnerabilities and Exposures (CVE) using the NIST National Vulnerability Database (NVD) RESTful API.
We found that cveutils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.