Categorygithub.com/daehee/nvd
modulepackage
1.0.4
Repository: https://github.com/daehee/nvd.git
Documentation: pkg.go.dev

# README

nvd Go Report

Fast, simple library in Go to fetch CVEs from the NVD (U.S. National Vulnerability Database) feeds.

Install

go get github.com/daehee/nvd

Usage

The nvd package provides a Client for fetching CVEs from the official NVD feeds:

// nvd client with ./tmp working dir
client, err := NewClient("tmp")

// Fetch single CVE
cve, err := client.FetchCVE("CVE-2020-14882")

// Fetch all recently published and modified CVES
cves, err := client.FetchUpdatedCVEs()

License

MIT License

# Functions

FixCVEID attempts to fix invalid CVE ID by sanitizing sequence.
IsCVEID matched on "Implied Strict" specification from MITRE, which is the simplest regular expression that does not mark any valid IDs as invalid; however, it removes the check for the leading 0 when there are 5 or more digits in the sequence number.
IsCVEIDLoose matches on "Loose" specification from MITRE, and ensures that 1.
IsCVEIDStrict matches on "Strict" specification from MITRE, and ensures that 1.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Implied Strict.
Loose.
Strict.
ErrNotFound occurs when CVE is expected but no result is returned from fetch operations.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NVD CVE Feed JSON Schema: https://csrc.nist.gov/schema/nvd/feed/1.1/nvd_cve_feed_json_1.1.schema.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WeaknessCatalog has CWE items.
No description provided by the author