Yarn Audit Report

<%= data.vulnerabilities.length %> unique from <%= data.summary.vulnerabilities %> known vulnerabilities | <%= data.summary.totalDependencies %> dependencies

<% data.vulnerabilities.forEach((vulnerability, vulnerabilityIndex) => { %>

<%= vulnerability.severity %> <%= vulnerability.title %>

  • Module: <%= vulnerability.module_name %>
  • <% if (vulnerability.version) { %>
  • Installed version: <%= vulnerability.version %>
  • <% } %>
  • Published: <%= formatDate(vulnerability.created) %>
  • <% if (vulnerability.reported_by) { %>
  • Reported by: <%= vulnerability.reported_by.name %>
  • <% } %>
  • <%= vulnerability.cwe %>
  • <% vulnerability.cves.forEach((cweItem) => { %>
  • <%= cweItem %>
  • <% }) %>
  • Vulnerable: <%= vulnerability.vulnerable_versions %>
  • Patched: <%= vulnerability.patched_versions %>
  • <% if (vulnerability.metadata) { %>
  • CVSS: <%= vulnerability.metadata.exploitability %>
  • <% } %>

Overview

<%- markdown(vulnerability.overview) %>
<% if (vulnerability.recommendation) { %>

Remediation

<%- markdown(vulnerability.recommendation) %>
<% } %> <% if (vulnerability.references) { %>

References

<%- markdown(vulnerability.references) %>
<% } %> <% if (vulnerability.paths.length) { %>

<% vulnerability.paths.forEach((path) => { %>
<%= path %>
<% }) %>
<% } %> More about this vulnerability
<% }) %> <% if (data.vulnerabilities.length === 0) { %>
Congrats!!! No vulnerabilities have been found.
<% } %>
Report generated at <%= formatDate(data.reportDate) %>