From b2b32ff4e38166b3c934cff3b6297cdd0620adfe Mon Sep 17 00:00:00 2001 From: Dan Gough Date: Fri, 8 Dec 2023 01:28:32 +0000 Subject: [PATCH] Cast Vulnerable to [bool] --- PoshCVE/Public/Get-CVE.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PoshCVE/Public/Get-CVE.ps1 b/PoshCVE/Public/Get-CVE.ps1 index 1b55c70..a39b73c 100644 --- a/PoshCVE/Public/Get-CVE.ps1 +++ b/PoshCVE/Public/Get-CVE.ps1 @@ -360,7 +360,7 @@ function Get-CVE { # If we're not filtering, or if the affected product matches the Part, Vendor and Product (we are using -like for wildcard search, and null values were converted to * earlier on) if (!$FilterAffectedProducts -or ($matches[1] -like $Part -and $matches[2] -like $Vendor -and $matches[3] -like $Product)) { [PSCustomObject]@{ - Vulnerable = $MatchCriteria.vulnerable + Vulnerable = [bool]$MatchCriteria.vulnerable Criteria = $MatchCriteria.criteria MatchCriteriaID = $MatchCriteria.matchCriteriaId ProductType = $AffectedProductType