diff --git a/dependency-check-core/src/main/resources/templates/XmlReport.vsl b/dependency-check-core/src/main/resources/templates/XmlReport.vsl index 78620132d..744304dc3 100644 --- a/dependency-check-core/src/main/resources/templates/XmlReport.vsl +++ b/dependency-check-core/src/main/resources/templates/XmlReport.vsl @@ -18,7 +18,7 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. @author Jeremy Long @version 1.1 *# - + $version #foreach($prop in $properties.getMetaData().entrySet()) @@ -88,10 +88,21 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. $enc.xml($id.description) #end +#end +#foreach($id in $dependency.getSuppressedIdentifiers()) + + ($id.value) +#if( $id.url ) + $enc.xml($id.url) +#end +#if( $id.description ) + $enc.xml($id.description) +#end + #end #end -#if($dependency.getVulnerabilities().size()>0) +#if($dependency.getVulnerabilities().size()>0 || $dependency.getSuppressedVulnerabilities().size()>0) #foreach($vuln in $dependency.getVulnerabilities()) @@ -123,6 +134,37 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. #end +#end +#foreach($vuln in $dependency.getSuppressedVulnerabilities()) + + $enc.xml($vuln.name) + $vuln.cvssScore +#if ($vuln.cvssScore<4.0) + Low +#elseif ($vuln.cvssScore>=7.0) + High +#else + Medium +#end +#if ($vuln.cwe) + $enc.xml($vuln.cwe) +#end + $enc.xml($vuln.description) + +#foreach($ref in $vuln.getReferences()) + + $enc.xml($ref.source) + $enc.xml($ref.url) + $enc.xml($ref.name) + +#end + + +#foreach($vs in $vuln.getVulnerableSoftware()) + $enc.xml($vs.name) +#end + + #end #end