diff --git a/_layouts/formula.html b/_layouts/formula.html index 98e57a304de..cf853c6b57f 100644 --- a/_layouts/formula.html +++ b/_layouts/formula.html @@ -263,6 +263,33 @@ {%- endif -%} +{%- if f.vulnerabilities and f.vulnerabilities.open.size > 0 %} +
Known vulnerabilities in the current version:
+| + {{ vid | escape }} + {%- if v.severity %} ({{ v.severity | escape }}){%- endif -%} + | +{{ v.summary | truncate: 100 | escape }} | +
Data from Homebrew/advisory-database. Run brew vulns {{ f.name | escape }} for a live check.
Homebrew ships patches for: + {%- for v in f.vulnerabilities.patched -%} + {%- assign vid = v.upstream[0] | default: v.id %} + {{ vid | escape }} + {%- unless forloop.last -%}, {% endunless -%} + {%- endfor -%}. +
+{%- endif %} +Analytics: