Up to [cvs.NetBSD.org] / pkgsrc / security / py-nvdlib
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-nvdlib: updated to 0.9.0 0.9.0 (2026-09-27) **Breaking** - Removed the `verbose` parameter from `searchCVE` and `searchCVE_V2`. It has done nothing since 0.7.8. Use the Python logging module instead, see https://nvdlib.com/en/latest/v2/startedv2.html#logging **Bugfixes** - Capped the `searchCPEmatch` limit at 500, the Match Criteria API maximum. - Fixed CPE match generator requests being sent to the CPE URL. - Stopped requesting an extra empty page when the total results are an exact multiple of the page size. - Fixed the `pubStartDate` error message showing `pubEndDate`. - Corrected CVE, CPE, and match string docstrings to match the live API field names, such as `cisaExploitAdd` and `lastModified`. **Enhancements** - Added `asDict` to every search function to return the plain dictionaries from the NVD API instead of objects. - Added `searchCVEHistory` and `searchCVEHistory_V2` for the CVE Change History API. - Added `searchSource` and `searchSource_V2` for the Source API. - Added `cveIds`, `cveTag`, `kevStartDate`, and `kevEndDate` to `searchCVE` and `searchCVE_V2`. - Added `searchCPEmatch_V2` and the `proxies` parameter to `searchCPEmatch`. - CVSS 3.1, 3.0, and 2.0 scores now use the Primary metric when one is present, the same as CVSS 4.0. - `cpe` now includes the CPE matches from every configuration node, not just the first. - Added `ssvc` to CVE objects when the CVE includes SSVC data. - HTTP errors now include the reason NVD returns in the `message` header.
*: remove reference to (removed) Python 3.9
py-nvdlib: updated to 0.8.3 0.8.3 Fixed an issue with searchCPEmatch where batching/paging did not work correctly Modified to paging logic to better align with NIST published best practices for the NVD AP
py-nvdlib: updated to 0.8.0 0.8.0 (2025-03-19) **Bugfixes** - Fixed passing the boolean to the URL on hasKev, hasOval, hasCertAlerts, hasCertNotes, and keyworkExactMatch
py-nvdlib: updated to 0.7.9 0.7.9 (2025-01-13) **Enhancements** - Added missing CVSS 3.0 data for `attackVector`, `attackComplexity`, `privilegesRequired`, `userInteraction`, `scope`, `confidentialityImpact`, `integrityImpact`, and `availabilityImpact` as reported from https://github.com/vehemont/nvdlib/issues/48 - Added basic CVSS 4.0 data: `v40score`, `v40vector`, and `v40severity` in CVEs. - Merged https://github.com/vehemont/nvdlib/pull/49 and https://github.com/vehemont/nvdlib/pull/50 to add more type hints and also fixes the MatchString search. Courtesy of @LachJones. - Increased minimum required Python version to `3.11` or later from Python 3.8.3. This opens up some cooler features and fixed a compatibility issue with `LiteralString` not being available until 3.11. 0.7.8 (2024-07-11) **Enhancements** - Merged https://github.com/vehemont/nvdlib/pull/44 - Updated delay parameter to a float. - Removed verbose in favor of the Python logging module. To try out the new logging addition, try the simple logger configuration below. It will create a file named "example_NVDLib.log" and will log NVDLib and Requests actions into the file. Syntax errors/HTTP server errors are logging level of "error", URLs requested (similar output to the previous `verbose` parameter) are set to "debug". ``` import logging import nvdlib logging.basicConfig(filename='example_NVDLib.log', encoding='utf-8', level=logging.DEBUG) r = nvdlib.searchCVE(keywordSearch="Microsoft") ```
py-*: remove unused tool dependency py-setuptools includes the py-wheel functionality nowadays
py-nvdlib: updated to 0.7.7 0.7.7 (2024-06-02) **Bugfixes** - Fix cwe attr in CVE by @jobselko in https://github.com/vehemont/nvdlib/pull/39 **Enhancements** - Added CPE Match String API with `nvdlib.searchCPEmatch`, check out the documentation at https://nvdlib.com/en/latest/v2/CVEv2.html#CPE-Match-Criteria-API and more information can be found at the NVD API documentation page: https://nvd.nist.gov/developers/products
security/py-nvdlib: import py-nvdlib-0.7.6 NVDlib is a Python library that allows you to interface with the NIST National Vulnerability Database (NVD), pull vulnerabilities (CVEs), and Common Platform Enumeration (CPEs) into easily accessible objects. ### Features - Search the NVD for CVEs using all parameters allowed by the NVD API (recently updated to utilize version 2 of the API). Including search criteria such as CVE publish and modification date, keywords, severity, score, or CPE name. - Search CPE names by keywords, CPE match strings, or modification dates. Then pull the CVE ID's that are relevant to those CPEs. - Retrieve details on individual CVEs, their relevant CPE names, and more. - Built in rate limiting according to NIST NVD recommendations. Get an API key to allow for a delay argument to be passed. Otherwise it is 6 seconds between requests by default.