diff --git a/cve_bin_tool/data_sources/epss_source.py b/cve_bin_tool/data_sources/epss_source.py index 455dacfa08..d295a0ee23 100644 --- a/cve_bin_tool/data_sources/epss_source.py +++ b/cve_bin_tool/data_sources/epss_source.py @@ -69,7 +69,9 @@ async def download_epss_data(self): # Check if the file is older than 24 hours if time_difference > timedelta(hours=24): try: - async with aiohttp.ClientSession(headers=HTTP_HEADERS) as session: + async with aiohttp.ClientSession( + headers=HTTP_HEADERS, trust_env=True + ) as session: async with session.get(self.DATA_SOURCE_LINK) as response: response.raise_for_status() self.LOGGER.info("Getting EPSS data...") @@ -89,7 +91,9 @@ async def download_epss_data(self): else: try: - async with aiohttp.ClientSession(headers=HTTP_HEADERS) as session: + async with aiohttp.ClientSession( + headers=HTTP_HEADERS, trust_env=True + ) as session: async with session.get(self.DATA_SOURCE_LINK) as response: response.raise_for_status() self.LOGGER.info("Getting EPSS data...")