From f14d4d145c17d8fb9c82cb2b45355f30737ae96d Mon Sep 17 00:00:00 2001 From: Sean Dolbec Date: Sat, 22 Aug 2026 19:15:51 -0400 Subject: [PATCH] fix: add Network Scanned + Vulnerability Levels summary cards to PDF (#167) The PDF report lacked the summary sections the web HTML has: target/duration info and the CVSS severity breakdown (Critical/High/Medium/Low counts). Ported both cards from nmap-modern.xsl into the PDF stylesheet so client-facing PDFs surface severity at a glance instead of burying CVEs in raw script output. Verified end-to-end: ran a complete+PDF scan on 127.0.0.1/32, regenerated PDF via the app's Playwright converter - both summary sections render, xsltproc validates. --- nmap-pdf-olive-legacy.xsl | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/nmap-pdf-olive-legacy.xsl b/nmap-pdf-olive-legacy.xsl index 26901e0b..0918c96a 100644 --- a/nmap-pdf-olive-legacy.xsl +++ b/nmap-pdf-olive-legacy.xsl @@ -684,6 +684,62 @@ Updated: 2026 + +
+ +
+

Network Scanned

+
+
+ Target: + +
+
+ IPs: +
+
+ Started: +
+
+ Duration: + s +
+
+
+ + +
+

Vulnerability Levels

+
+
+ Critical (CVSS ≥9.0) + + + +
+
+ High (CVSS ≥7.0) + + + +
+
+ Medium (CVSS ≥4.0) + + + +
+
+ Low (CVSS <4.0) + + + +
+
+
+
+ +