diff --git a/x-pack/plugins/cloud_security_posture/public/pages/vulnerabilities/vulnerabilities_finding_flyout/vulnerability_overview_tab.tsx b/x-pack/plugins/cloud_security_posture/public/pages/vulnerabilities/vulnerabilities_finding_flyout/vulnerability_overview_tab.tsx index 7cf91848649b0..cebcbfd5db4f8 100644 --- a/x-pack/plugins/cloud_security_posture/public/pages/vulnerabilities/vulnerabilities_finding_flyout/vulnerability_overview_tab.tsx +++ b/x-pack/plugins/cloud_security_posture/public/pages/vulnerabilities/vulnerabilities_finding_flyout/vulnerability_overview_tab.tsx @@ -45,14 +45,7 @@ interface VulnerabilityTabProps { } const CVSScore = ({ vectorBaseScore, vendor }: CVSScoreProps) => { - const vendorName = - cvssVendors[vendor] ?? - i18n.translate( - 'xpack.csp.vulnerabilities.vulnerabilityOverviewTab.cvsScore.unknownVendorName', - { - defaultMessage: 'Unknown vendor', - } - ); + const vendorName = cvssVendors[vendor]; const vectorScores = getVectorScoreList(vectorBaseScore); @@ -212,14 +205,16 @@ export const VulnerabilityOverviewTab = ({ vulnerabilityRecord }: VulnerabilityT ? `${vulnerabilityRecord?.package?.name} ${vulnerabilityRecord?.package?.fixed_version}` : emptyFixesMessageState; - const cvssScores: JSX.Element[] = vulnerability?.cvss + const cvssScores = vulnerability?.cvss ? Object.entries(vulnerability.cvss).map( ([vendor, vectorScoreBase]: [string, VectorScoreBase]) => { - return ( - - - - ); + if (cvssVendors[vendor]) { + return ( + + + + ); + } } ) : []; diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json index 7f0a2cfc30adb..880c295208a6d 100644 --- a/x-pack/plugins/translations/translations/fr-FR.json +++ b/x-pack/plugins/translations/translations/fr-FR.json @@ -12017,7 +12017,6 @@ "xpack.csp.vulnerabilities.vulnerabilityFindingFlyout.overviewTabLabel": "Aperçu", "xpack.csp.vulnerabilities.vulnerabilityFindingFlyout.tableTabLabel": "Tableau", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.alertsTitle": "Alertes", - "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.cvsScore.unknownVendorName": "Fournisseur inconnu", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.descriptionTitle": "Description", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.emptyFixesMessage": "Aucun correctif n'est disponible pour l'instant.", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.fixes": "Correctifs", diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index be25abee7f2d3..367c031a18663 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -12031,7 +12031,6 @@ "xpack.csp.vulnerabilities.vulnerabilityFindingFlyout.overviewTabLabel": "概要", "xpack.csp.vulnerabilities.vulnerabilityFindingFlyout.tableTabLabel": "表", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.alertsTitle": "アラート", - "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.cvsScore.unknownVendorName": "不明なベンダー", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.descriptionTitle": "説明", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.emptyFixesMessage": "まだ利用可能な修正はありません。", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.fixes": "修正", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index db0c7d682ba7b..fa8bf923512ce 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -12125,7 +12125,6 @@ "xpack.csp.vulnerabilities.vulnerabilityFindingFlyout.overviewTabLabel": "概览", "xpack.csp.vulnerabilities.vulnerabilityFindingFlyout.tableTabLabel": "表", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.alertsTitle": "告警", - "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.cvsScore.unknownVendorName": "未知供应商", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.descriptionTitle": "描述", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.emptyFixesMessage": "尚没有修复可用。", "xpack.csp.vulnerabilities.vulnerabilityOverviewTab.fixes": "修复",