Skip to contents

Use vulnerability IDs to extract more detailed information, usually paired with osv_querybatch().

Usage

osv_vulns(vuln_ids, parse = TRUE, cache = TRUE)

.osv_vulns(vuln_ids, parse = TRUE)

.osv_vulns_cache(vuln_ids, parse = TRUE)

Arguments

vuln_ids

Vector of vulnerability IDs.

parse

Boolean value to set if the content field should be parsed from JSON list format.

cache

Boolean value to determine if should use a cached version of the function and API results.

Value

An R6 object containing API query contents.

Functions

  • .osv_vulns(): Internal function to run osv_vulns without caching.

  • .osv_vulns_cache(): Internal function to run a memoise and cached version of osv_vulns.

Examples

if (FALSE) { # interactive()
vulns <- osv_vulns("RSEC-2023-8")
get_content(vulns)
}