Vulners Python SDK 4.4.0
Added
documents.list_references(id, *, type=..., limit=20, offset=0, fields=...)— page through
every bulletin related toidthrough a shared CVE, viaGET /api/v4/search/references.
Returns aReferencesPage(async:AsyncReferencesPage, both importable fromvulners):- iterating the page fetches the following pages until the relation is exhausted;
totalandtotal_by_typedescribe the whole relation as visible to your licence,
regardless of thetypefilter and of the page;- ids of related documents that no longer exist are listed in
missinginstead ofdata.
from vulners import Vulners
with Vulners(api_key="YOUR_API_KEY_HERE") as v:
page = v.documents.list_references("CVE-2021-44228", type="exploitdb", limit=100)
print(page.total, page.total_by_type) # the whole relation
for bulletin in page: # fetches the following pages as needed
print(bulletin.id)Documentation
documents.references()and thereferences=Truelookups are capped by the server at
1000 related documents per id; when a list is cut,/api/v3/search/idanswers
206 Partial Contentwith the usual body. Both clients already treat 206 as success; use
documents.list_references()for the full relation.metrics.epssin audit results is a one-element list holding the highest-EPSS CVE as a full
record{cve, epss, percentile, date}, the same shape on every audit endpoint; per-CVE scores
are incvelistMetrics(or the advisory'sepss[]onsbom_audit).
Full changelog: https://github.com/vulnersCom/api/blob/master/CHANGELOG.md