CVE (Common Vulnerabilities and Exposures) cross-referencing.
Maps npm advisory data to CVE identifiers and provides vulnerability severity analysis.
Summary
Functions
Checks if any advisory is above a given threshold.
Compares two severity levels. Returns :gt, :lt, or :eq.
Extracts CVE identifiers from advisory data.
Formats a vulnerability summary.
Groups advisories by affected package.
Returns the highest severity from a list of advisories.
Counts advisories by severity.
Functions
Checks if any advisory is above a given threshold.
Compares two severity levels. Returns :gt, :lt, or :eq.
Extracts CVE identifiers from advisory data.
Formats a vulnerability summary.
Groups advisories by affected package.
Returns the highest severity from a list of advisories.
@spec severity_counts([map()]) :: %{required(String.t()) => non_neg_integer()}
Counts advisories by severity.