vigievuln 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Release notes — VigieVuln
2
2
 
3
- ## Unreleased
3
+ ## [1.4.1] — 2026-11-29
4
+
5
+ - Remove the `fad-checker` and `fad` command aliases from the package: the command is `vigievuln`. A script that still calls an alias must be updated. The `fad-checker.js` entry file stays in the package.
6
+ - Read a CERT-FR advisory again when its listing shows another title, and once a day the alerts revised in the last 30 days: CERT-FR edits a recent alert in place (a CVE added, "[MàJ]" before the title) without a new revision, so the index kept the first version and the CVE was never linked to the alert.
7
+ - Wrap long legend entries in the report charts: one entry naming several modules ("Shared: …") shrank the four charts of the summary row.
8
+
9
+ ## [1.4.0] — 2026-11-28
4
10
 
5
11
  - Close every HTML and Word report on a disclaimer, in the report language, and carry it in `findings.json` (`disclaimer`): an automated aid built from public data that may be incomplete or wrong, provided as is, without liability.
6
12
  - Scan only the container images a project declares with `vigievuln scan <path> --images-only`: the report goes to `./vigievuln-report-images`, apart from the dependency report of a scan without the option.
@@ -12,9 +18,6 @@
12
18
  - Count the reviewed VigieVuln advisories as a consulted source when OSV is disabled: a proxied scan run with `--no-osv` was cancelled as unassessed although they had answered.
13
19
  - Treat a consultation made during the run as current under `--advisory-query-ttl 0`: the reviewed advisories just fetched were reported stale and not counted.
14
20
  - Correct the `watch` help and the usage guide, which still named the removed `-s` option.
15
-
16
- ## [1.4.0] — 2026-11-28
17
-
18
21
  - Assess Wolfi and Chainguard OS systems from the security database of their package repositories.
19
22
  - Assess Red Hat Enterprise Linux and UBI, CentOS Linux, Oracle Linux, SUSE Linux Enterprise, openSUSE Leap and Tumbleweed, Azure Linux and CBL-Mariner, Mageia and openEuler systems from their `os-release` identity, without any advisory configuration. On a Red Hat UBI 8.6 image every fixed advisory reported by Trivy (567) and Grype (587) is found.
20
23
  - Report the vulnerabilities Red Hat states are present without a fix (affected, fix deferred, will not fix, out of support scope), from its OVAL data, for Red Hat Enterprise Linux 6 to 9 and the distributions rebuilt from it; one finding per source package names the packages concerned. Use Red Hat errata as a second source for AlmaLinux and Rocky Linux, whose own errata miss updates: on a Rocky Linux 8.6 image, 2 700 of the 2 705 fixed advisories reported by Grype are found (1 910 before) and 4 539 of its 4 593 unfixed ones.
package/README.md CHANGED
@@ -10,14 +10,14 @@
10
10
  [![CI](https://github.com/9pings/VigieVuln/actions/workflows/ci.yml/badge.svg)](https://github.com/9pings/VigieVuln/actions/workflows/ci.yml)
11
11
 
12
12
 
13
- **VigieVuln 1.4.0** is a polyglot dependency auditor for code audits.
13
+ **VigieVuln** is a fully autonomous polyglot CVE scanner built for professional audits: audit them all, no build, backed by evidence.
14
14
 
15
15
  It scans dependencies of **10 ecosystems + 11 CMS/frameworks + systems/dockers images** in one pass without build tools, supports **air-gapped** workflows, detects private packages, binaries and certificates, and produces HTML, JSON and other reports.
16
16
 
17
17
 
18
18
  🌐 **[Project site & docs →](https://9pings.github.io/VigieVuln/)**
19
19
 
20
- *Terminal demo recorded with VigieVuln 1.2.1.*
20
+ *Terminal demo recorded with VigieVuln 1.4.0.*
21
21
 
22
22
  <p align="center"><img src="docs/assets/demo.gif" alt="vigievuln animated terminal demo: an offline Maven audit — dependencies absent from Maven Central flagged as private/internal, the compact single-line vulnerability-database progress, then findings coloured by severity" height="500"></p>
23
23
 
@@ -192,10 +192,11 @@ Review the descriptor before sharing and the report's coverage and freshness inf
192
192
 
193
193
  ### Interactive HTML samples
194
194
 
195
- - **[Apache Dubbo 2.7.8 — open the report](https://9pings.github.io/VigieVuln/samples/dubbo.html)**: the project used for the report screenshot below, rescanned with VigieVuln 1.2.1; 105 Maven descriptors, direct/transitive CVEs, KEV matches, EOL and fix recommendations.
196
- - **[Multi-instance CMS & frameworks — open the report](https://9pings.github.io/VigieVuln/samples/multi-cms-frameworks.html)**: WordPress 6.4.2, Drupal 8.5.0, Symfony Demo (Symfony 7.1.1) and BookStack v24.10 (Laravel 10.48.22), with findings attributed to each instance.
195
+ - **[Apache Dubbo 2.7.8 — open the report](https://9pings.github.io/VigieVuln/samples/dubbo.html)**: the project used for the report screenshot below; 105 Maven descriptors, 400 dependencies, direct/transitive CVEs, KEV matches, EOL and fix recommendations.
196
+ - **[Multi-instance CMS & frameworks — open the report](https://9pings.github.io/VigieVuln/samples/multi-cms-frameworks.html)**: WordPress 6.4.2, Drupal 8.5.0, Symfony Demo (Symfony 7.1.1) and BookStack v24.10 (Laravel 10.48.22), every ecosystem assessed, with findings attributed to each instance.
197
+ - **[Traefik v2.11.0 image](https://9pings.github.io/VigieVuln/samples/traefik-image.html)** and **[NGINX 1.24.0 image](https://9pings.github.io/VigieVuln/samples/nginx-image.html)**: container images acquired from the registry and inventoried without being run (Alpine and Debian packages, Go modules of the binary).
197
198
 
198
- These are standalone reports from real source scans, generated on **2026-11-04** with VigieVuln **1.2.1**. Dubbo uses the hosted proxy; the CMS sample uses its local cache offline and focuses on PHP dependencies. Missing Wordfence/Drupal advisory and WordPress checksum inputs are explicitly marked incomplete. [Sample scope, sources and reproduction commands](docs/samples/README.md).
199
+ These are standalone reports from real scans, generated on **2026-11-29** with VigieVuln **1.4.0**, online against the public sources. Three of them are published marked incomplete, with each gap listed in chapter 0 (manifests without a lockfile, distributions out of support). [Sample scope, sources and reproduction commands](docs/samples/README.md).
199
200
 
200
201
  ### Resolution and coverage
201
202
 
@@ -37,4 +37,4 @@ _fad_check_complete() {
37
37
  return 0
38
38
  fi
39
39
  }
40
- complete -F _fad_check_complete vigievuln fad-checker fad
40
+ complete -F _fad_check_complete vigievuln
@@ -1,4 +1,4 @@
1
- #compdef vigievuln fad-checker fad
1
+ #compdef vigievuln
2
2
  # Zsh completion for vigievuln (VigieVuln — autonomous dependency auditor)
3
3
  _fad_check() {
4
4
  if (( CURRENT == 2 )); then
@@ -9,6 +9,11 @@
9
9
  * the handful published since. Hosted proxy mode instead sends matched CVE identifiers
10
10
  * to the proxy and receives only their stored advisory references.
11
11
  *
12
+ * CERT-FR also edits a recent alert in place — a CVE added, "[MàJ]" put before the title —
13
+ * without a new revision: the revision date alone misses it. So an advisory whose listing
14
+ * title differs from the indexed one is read again, and once a day the alerts revised in
15
+ * the last 30 days are read again whatever the listing says.
16
+ *
12
17
  * Cache: ~/.fad-checker/certfr-cache.json = { meta: { fetchedAt }, entries: { ref:
13
18
  * { kind, rev, title, cves } } } — the accumulating entry-map shape, so --import-cache
14
19
  * merges it key by key. The listings are re-read after 4h; offline uses what is there.
@@ -25,6 +30,9 @@ const CACHE_FILE = "certfr-cache.json";
25
30
  const CACHE_TTL_MS = 4 * 3600 * 1000;
26
31
  const KINDS = ["avis", "alerte"];
27
32
  const SAVE_EVERY = 500;
33
+ // Alerts revised within RECHECK_DAYS are read again every RECHECK_EVERY_MS.
34
+ const RECHECK_DAYS = 30;
35
+ const RECHECK_EVERY_MS = 24 * 3600 * 1000;
28
36
 
29
37
  const cachePath = dir => path.join(dir || DEFAULT_CACHE_DIR, CACHE_FILE);
30
38
 
@@ -58,11 +66,23 @@ function advisoryCves(json) {
58
66
  return [...out];
59
67
  }
60
68
 
61
- /** Pure: listing rows that are new or revised against the cached entries. */
62
- function staleAdvisories(listing, entries, kind) {
63
- return (Array.isArray(listing) ? listing : [])
64
- .filter(row => row?.reference && entries[row.reference]?.rev !== (row.last_revision_date || ""))
65
- .map(row => ({ kind, ref: row.reference, rev: row.last_revision_date || "", title: row.title || "" }));
69
+ /**
70
+ * Pure: listing rows to read against the indexed entries — new, revised, or shown under
71
+ * another title (edited in place). With `recheckSince` (ms), the alerts revised since then
72
+ * are added: `recheck` marks a row whose revision date is the indexed one, so its indexed
73
+ * copy must not be trusted and its content is compared after the read.
74
+ */
75
+ function staleAdvisories(listing, entries, kind, { recheckSince = null } = {}) {
76
+ const out = [];
77
+ for (const row of Array.isArray(listing) ? listing : []) {
78
+ if (!row?.reference) continue;
79
+ const e = entries[row.reference], rev = row.last_revision_date || "", title = row.title || "";
80
+ const sameRevision = !!e && e.rev === rev;
81
+ const retitled = sameRevision && typeof e.title === "string" && e.title !== title;
82
+ const recent = sameRevision && kind === "alerte" && recheckSince != null && Date.parse(String(rev).slice(0, 19) + "Z") >= recheckSince;
83
+ if (!sameRevision || retitled || recent) out.push({ kind, ref: row.reference, rev, title, recheck: sameRevision });
84
+ }
85
+ return out;
66
86
  }
67
87
 
68
88
  /** Pure: entries → { "CVE-…": [{ ref, kind, title }] }, newest advisory first. */
@@ -75,29 +95,35 @@ function indexByCve(entries) {
75
95
  return byCve;
76
96
  }
77
97
 
78
- async function refresh(data, { fetcher, verbose, cacheDir, concurrency, onProgress }) {
98
+ async function refresh(data, { fetcher, verbose, cacheDir, concurrency, onProgress, recheckSince = null }) {
79
99
  const { getResource } = require("..");
80
100
  const headers = { "User-Agent": "vigievuln-certfr" };
81
- const todo = [];
101
+ const todo = [], changed = [];
102
+ const sameCves = (a, b) => { const x = [...(a || [])].sort(), y = [...(b || [])].sort(); return x.length === y.length && x.every((c, i) => c === y[i]); };
82
103
  let oldestFetchedAt = Date.now();
83
104
  for (const kind of KINDS) {
84
105
  const r = await getResource("certfr", "index", { kind }, { fetcher, headers });
85
106
  if (!r.ok) throw new Error(`CERT-FR ${kind} listing HTTP ${r.status}`);
86
107
  oldestFetchedAt = Math.min(oldestFetchedAt, require('../common').responseFetchedAt(r));
87
- todo.push(...staleAdvisories(await r.json(), data.entries, kind));
108
+ todo.push(...staleAdvisories(await r.json(), data.entries, kind, { recheckSince }));
88
109
  }
89
110
  let done = 0, failed = 0, next = 0;
90
111
  const worker = async () => {
91
112
  while (next < todo.length) {
92
113
  const a = todo[next++];
93
114
  try {
94
- const r = await getResource("certfr", "advisory", { kind: a.kind, ref: a.ref, rev: a.rev }, { fetcher, headers });
115
+ // The copy kept under this revision is the one being doubted: a recheck asks the source.
116
+ const r = await getResource("certfr", "advisory", { kind: a.kind, ref: a.ref, rev: a.rev }, { fetcher, headers, ...(a.recheck ? { forceRefresh: true } : {}) });
95
117
  oldestFetchedAt = Math.min(oldestFetchedAt, require('../common').responseFetchedAt(r));
96
118
  // A 404/410 is an answer (a listed advisory without JSON): record it empty so it
97
119
  // is not re-requested every run. Anything else is retried next time.
98
- if (r.ok) data.entries[a.ref] = { kind: a.kind, rev: a.rev, title: a.title, cves: advisoryCves(await r.json()) };
99
- else if (r.status === 404 || r.status === 410) data.entries[a.ref] = { kind: a.kind, rev: a.rev, title: a.title, cves: [] };
100
- else failed++;
120
+ const before = data.entries[a.ref];
121
+ const cves = r.ok ? advisoryCves(await r.json()) : r.status === 404 || r.status === 410 ? [] : null;
122
+ if (cves === null) failed++;
123
+ // A recheck that finds the same title and CVEs — or no JSON this time — leaves the
124
+ // entry as it is: whoever keeps more in it (a description) does not lose it.
125
+ else if (a.recheck && (!r.ok || (before.title === a.title && sameCves(before.cves, cves)))) { /* unchanged */ }
126
+ else { data.entries[a.ref] = { kind: a.kind, rev: a.rev, title: a.title, cves }; changed.push(a.ref); }
101
127
  } catch { failed++; }
102
128
  done++;
103
129
  if (onProgress) onProgress(done, todo.length);
@@ -107,12 +133,15 @@ async function refresh(data, { fetcher, verbose, cacheDir, concurrency, onProgre
107
133
  await Promise.all(Array.from({ length: Math.max(1, concurrency) }, worker));
108
134
  // A run that could not read some advisories leaves the listing stamp unchanged, so the
109
135
  // next run retries them instead of waiting a day.
110
- if (!failed) data.meta = { fetchedAt: oldestFetchedAt };
136
+ if (!failed) data.meta = { fetchedAt: oldestFetchedAt, recheckedAt: recheckSince != null ? Date.now() : data.meta?.recheckedAt || 0 };
111
137
  writeCache(cacheDir, data);
112
- if (verbose) console.log(` CERT-FR: ${todo.length - failed} advisories indexed${failed ? `, ${failed} failed` : ""}`);
113
- return { changed: todo.filter(a => data.entries[a.ref]?.rev === a.rev).map(a => a.ref), failed };
138
+ if (verbose) console.log(` CERT-FR: ${todo.length - failed} advisories read, ${changed.length} indexed${failed ? `, ${failed} failed` : ""}`);
139
+ return { changed, failed, rechecked: recheckSince != null && !failed };
114
140
  }
115
141
 
142
+ /** The `recheckSince` of a run: the start of the recheck window when the last recheck is a day old, else null. */
143
+ const recheckDue = (recheckedAt, now = Date.now()) => now - (Number(recheckedAt) || 0) >= RECHECK_EVERY_MS ? now - RECHECK_DAYS * 86400000 : null;
144
+
116
145
  /**
117
146
  * Enrich matches in place: cve.certfr = [{ ref, kind, title }] for CVEs cited by a
118
147
  * CERT-FR advisory or alert. opts: { offline, verbose, fetcher, cacheDir, concurrency, onProgress }
@@ -137,7 +166,7 @@ async function enrichCertFr(matches, opts = {}) {
137
166
 
138
167
  const data = readCache(cacheDir);
139
168
  if (!offline && !require('../../cache/policy').fresh(data.meta?.fetchedAt || 0, CACHE_TTL_MS)) {
140
- try { await refresh(data, { fetcher, verbose, cacheDir, concurrency, onProgress }); }
169
+ try { await refresh(data, { fetcher, verbose, cacheDir, concurrency, onProgress, recheckSince: recheckDue(data.meta?.recheckedAt) }); }
141
170
  catch (err) { if (verbose) console.warn(` CERT-FR refresh failed: ${err.message} — using the cached index`); }
142
171
  }
143
172
  const byCve = indexByCve(data.entries);
@@ -151,7 +180,9 @@ async function enrichCertFr(matches, opts = {}) {
151
180
  /**
152
181
  * Bring an index { meta, entries } up to date in place (listings + new/revised advisories).
153
182
  * cacheDir: false = do not write the fad cache file (the caller persists the entries).
183
+ * recheckSince (ms): also read again the alerts revised since then (see `recheckDue`).
184
+ * → { changed: refs whose entry was written, failed, rechecked }
154
185
  */
155
186
  const refreshCertFrIndex = (data, opts = {}) => refresh(data, { concurrency: 8, ...opts });
156
187
 
157
- module.exports = { enrichCertFr, refreshCertFrIndex, advisoryCves, staleAdvisories, indexByCve, certfrUrl, CACHE_FILE };
188
+ module.exports = { enrichCertFr, refreshCertFrIndex, recheckDue, advisoryCves, staleAdvisories, indexByCve, certfrUrl, CACHE_FILE, RECHECK_DAYS, RECHECK_EVERY_MS };
@@ -374,12 +374,27 @@ const FONT = "font-family='-apple-system,Segoe UI,Roboto,sans-serif'";
374
374
  const legendStr = s => s.name ? `${s.label} · ${s.name} · ${s.value}` : `${s.label} · ${s.value}`;
375
375
  const LEGEND_CHARW = 4.15; // ~px per char at the 7.5px legend font
376
376
 
377
- // The viewBox width needed to fit the FULL legend text (no ellipsis). The caller
378
- // takes the MAX across all four charts and feeds it to every donut, so they share
379
- // one viewBox width → uniform donut size when each card is the same 25% slot.
377
+ // A legend entry keeps its full text (no ellipsis) but wraps past this length: the four
378
+ // donuts share one viewBox width, so a single long entry — "Shared: <seven modules>" —
379
+ // would otherwise shrink every chart of the row.
380
+ const LEGEND_MAX_CHARS = 72;
381
+ function legendLines(text) {
382
+ const lines = [];
383
+ let line = "";
384
+ for (const word of String(text).split(" ")) {
385
+ if (line && line.length + 1 + word.length > LEGEND_MAX_CHARS) { lines.push(line); line = ""; }
386
+ line += (line ? " " : "") + word;
387
+ }
388
+ if (line) lines.push(line);
389
+ return lines.flatMap(l => l.length > LEGEND_MAX_CHARS ? l.match(new RegExp(`.{1,${LEGEND_MAX_CHARS}}`, "g")) : [l]);
390
+ }
391
+
392
+ // The viewBox width needed to fit the legend lines. The caller takes the MAX across all
393
+ // four charts and feeds it to every donut, so they share one viewBox width → uniform
394
+ // donut size when each card is the same 25% slot.
380
395
  function legendBoxWidth(slices, note) {
381
396
  const items = (slices || []).filter(s => s.value > 0);
382
- return Math.ceil(Math.max(0, ...items.map(s => 13 + legendStr(s).length * LEGEND_CHARW), note ? note.length * 4 : 0)) + 8;
397
+ return Math.ceil(Math.max(0, ...items.flatMap(s => legendLines(legendStr(s)).map(l => 13 + l.length * LEGEND_CHARW)), note ? Math.min(note.length, LEGEND_MAX_CHARS) * 4 : 0)) + 8;
383
398
  }
384
399
 
385
400
  // A donut + a legend underneath. Category slices may carry per-severity `segments`;
@@ -448,9 +463,12 @@ function donutChart({ slices, width = 250, note, centerValue, t = EN_T }) {
448
463
  }
449
464
  ly += 12;
450
465
  }
451
- for (const s of items) { // full legend text — no ellipsis
466
+ for (const s of items) { // full legend text — no ellipsis, long entries wrap
452
467
  parts.push(`<rect x="0" y="${ly - 7}" width="8" height="8" rx="1" fill="${s.color}"/>`);
453
- parts.push(`<text x="11" y="${ly}" ${FONT} font-size="7.5" fill="#4b5563">${esc(legendTxt(s))}</text>`);
468
+ for (const [i, line] of legendLines(legendTxt(s)).entries()) {
469
+ if (i) ly += 9;
470
+ parts.push(`<text x="11" y="${ly}" ${FONT} font-size="7.5" fill="#4b5563">${esc(line)}</text>`);
471
+ }
454
472
  ly += 11;
455
473
  }
456
474
  if (note) {
package/package.json CHANGED
@@ -1,43 +1,60 @@
1
1
  {
2
2
  "name": "vigievuln",
3
- "version": "1.4.0",
4
- "description": "Polyglot dependency auditor for Maven, Gradle, JavaScript, Composer, PyPI, NuGet, Go, Ruby and 11 CMS/frameworks, with offline scans and audit reports.",
3
+ "version": "1.4.1",
4
+ "description": "Fully autonomous polyglot CVE scanner for professional audits, no build needed: Maven, Gradle, JavaScript, Composer, PyPI, NuGet, Go, Ruby, 11 CMS/frameworks, system and container images; offline scans and audit reports.",
5
5
  "keywords": [
6
+ "vigievuln",
6
7
  "sca",
7
8
  "software-composition-analysis",
8
9
  "dependency-scanner",
9
10
  "vulnerability-scanner",
11
+ "cve-scanner",
10
12
  "security",
13
+ "security-audit",
14
+ "code-audit",
15
+ "pentest",
16
+ "no-build",
17
+ "zero-build",
18
+ "offline",
19
+ "air-gapped",
11
20
  "cve",
12
21
  "osv",
13
22
  "nvd",
14
23
  "epss",
15
24
  "kev",
16
- "cyclonedx",
25
+ "euvd",
26
+ "cert-fr",
27
+ "eol",
28
+ "end-of-life",
29
+ "outdated",
30
+ "deprecated",
31
+ "malicious-packages",
32
+ "private-dependencies",
33
+ "license-compliance",
17
34
  "sbom",
35
+ "cyclonedx",
36
+ "spdx",
18
37
  "csaf",
19
38
  "vex",
20
39
  "sarif",
21
40
  "xlsx",
22
- "excel",
23
- "license-compliance",
24
- "eol",
25
- "end-of-life",
26
- "outdated",
27
- "deprecated",
28
41
  "audit",
29
42
  "devsecops",
30
43
  "appsec",
31
44
  "supply-chain",
32
- "offline",
33
- "air-gapped",
34
45
  "maven",
46
+ "gradle",
47
+ "java",
35
48
  "npm",
36
49
  "yarn",
37
50
  "pnpm",
51
+ "javascript",
38
52
  "composer",
53
+ "php",
39
54
  "pypi",
55
+ "python",
40
56
  "nuget",
57
+ "dotnet",
41
58
  "go",
42
59
  "golang",
43
60
  "ruby",
@@ -45,19 +62,26 @@
45
62
  "retirejs",
46
63
  "polyglot",
47
64
  "cli",
65
+ "docker",
66
+ "container-scanning",
67
+ "container-security",
68
+ "linux",
69
+ "debian",
70
+ "alpine",
71
+ "rhel",
48
72
  "cms",
49
73
  "framework",
50
74
  "wordpress",
51
75
  "drupal",
52
- "symfony",
53
- "laravel",
54
76
  "joomla",
55
77
  "prestashop",
56
- "typo3",
57
78
  "magento",
79
+ "typo3",
58
80
  "spip",
59
- "proxy-cache",
60
- "code-audit",
81
+ "ghost",
82
+ "redmine",
83
+ "symfony",
84
+ "laravel",
61
85
  "certificates",
62
86
  "binary-analysis"
63
87
  ],
@@ -76,9 +100,7 @@
76
100
  "pp9Ping <pp9Ping@gmail.com>"
77
101
  ],
78
102
  "bin": {
79
- "vigievuln": "vigievuln.js",
80
- "fad-checker": "vigievuln.js",
81
- "fad": "vigievuln.js"
103
+ "vigievuln": "vigievuln.js"
82
104
  },
83
105
  "exports": {
84
106
  ".": "./vigievuln.js",