diff --git a/netutils/nist.py b/netutils/nist.py index 43bba916..7cc5cf28 100644 --- a/netutils/nist.py +++ b/netutils/nist.py @@ -10,7 +10,7 @@ def get_nist_urls_juniper_junos(os_platform_data: t.Dict[str, t.Any]) -> t.List[ List of NIST CPE URLs that may contain platform data. """ nist_urls = [] - base_url = f'{"https://services.nvd.nist.gov/rest/json/cpes/2.0?cpeMatchString=cpe:2.3:o:juniper:junos"}' + base_url = f'{"https://services.nvd.nist.gov/rest/json/cves/2.0?virtualMatchString=cpe:2.3:o:juniper:junos"}' # BASE _main = os_platform_data.get("main") @@ -107,7 +107,7 @@ def get_nist_urls_default(os_platform_data: t.Dict[str, t.Any]) -> t.List[str]: """ nist_urls = [] escape_list = [r"\(", r"\)"] - base_url = f'{"https://services.nvd.nist.gov/rest/json/cpes/2.0?cpeMatchString=cpe:2.3:o:"}' + base_url = f'{"https://services.nvd.nist.gov/rest/json/cves/2.0?virtualMatchString=cpe:2.3:o:"}' os_platform_data = {"base_url": base_url, **os_platform_data} delim_seven = ":*" * 7