{% from "partials/_macros.html" import card_header, pagination_bar %} {# severity → pill colour (CVSS band). Drives the leading column the panel is always sorted by. #} {% set sev_cls = { 'critical': 'border-red-800 bg-red-900/40 text-red-300', 'high': 'border-orange-800 bg-orange-900/30 text-orange-300', 'medium': 'border-amber-800 bg-amber-900/30 text-amber-300', 'low': 'border-sky-900/60 bg-sky-900/30 text-sky-300', 'none': 'border-slate-700 bg-slate-800/60 text-slate-400', } %} {% set has_filters = vulns.q or vulns.severity or vulns.source %}
{{ card_header("vulnerabilities — patch me (CVE / EOL)") }} {{ vulns.total }} item(s)
{% if vulns.rows or has_filters %} {# ----- filter bar ----- #}
{% endif %} {% if vulns.rows %} {# ----- summary strip ----- #}
{% set sm = vulns.summary %}
{{ sm.critical }}
critical
{{ sm.high }}
high
{{ sm.kev }}
exploited (KEV)
{{ sm.exposed }}
exposed
{% for v in vulns.rows %} {% endfor %}
severity software vulnerabilities cvss flag source
{{ v.severity }} {{ v.software }} {% if v.exposed or v.running %}
{% if v.exposed %} exposed {% elif v.running %} running {% endif %}
{% endif %}
{% if v.cves %}
{% for c in v.cves %} {{ c.id }}{% if c.cvss %} ({{ c.cvss }}){% endif %} {% endfor %}
{% elif v.eol %} end-of-life / unsupported OS {% endif %} {% if v.summary %}
{{ v.summary }}
{% endif %}
{{ v.cvss if v.cvss is not none else '—' }} {% if v.kev %} KEV {% elif v.eol %} EOL {% else %} CVE {% endif %} {{ v.source }}
{{ pagination_bar("vulnerabilities", vulns.page, vulns.total_pages, vulns.total, vulns.rows|length, vulns.per_page, per_page_options) }} {% elif has_filters %}
no vulnerabilities match the current filters.
{% else %}
no known vulnerabilities found yet — needs enrichment enabled and installed-app / OS-version collection (OSV checks installed packages, endoflife.date flags unsupported OSes).
{% endif %}