Skip to main content
VulnParse-Pin emblem VulnParse-Pin emblem
VulnParse-Pin
Installation and Usage Upgrade and Migration.md
View source on GitHub ↗

Upgrade and Migration

This guide explains how to upgrade to v2.1.1 from v2.1.0 or v2.0.x (and covers migrating older v1.2.x or v1.0.x setups).


Upgrading from v2.1.0 to v2.1.1

v2.1.1 is a backward-compatible patch release focused on supply-chain hardening, RPM 4.18+ signing compatibility, parser resilience, and macOS path handling. Existing .vpp.db workspaces, config.yaml, assets.yaml, and decisions.yaml files require no schema or configuration changes.

Operational Changes to Note in v2.1.1

  • Standalone container builds (examples/deploy/Dockerfile): Now ships with its own hash-locked examples/deploy/requirements-runtime.txt and requires --build-arg VPP_PYPI_SHA256=<64-hex> so the vulnparse-pin binary wheel is verified by SHA-256 before installation (builds fail closed if omitted or malformed). See Deployment Options.
  • SARIF 512-level JSON nesting guard (src/vulnparse_pin/parsers/sarif_parser.py): Streaming SARIF parsing now enforces an iterative 512-level JSON nesting limit, failing closed cleanly on pathologically nested payloads.
  • macOS /tmp, /var, /etc workspaces (src/vulnparse_pin/io/pfhandler.py, src/vulnparse_pin/storage/db.py): Recognizes Apple’s three root-owned Signed System Volume root symlinks (/var, /tmp, /etc -> /private/*) on macOS while continuing to block all other symlinks.
  • RPM 4.18+ signing & hash-locked CI/packaging (packaging/): Updates EphemeralGPGSigner for RPM 4.18+ compatibility and locks CI, release, docs, and Linux package builds to SHA-256 hash-pinned binary wheels (--require-hashes --only-binary=:all:).

Quick v2.1.0 -> v2.1.1 Upgrade Steps

# PyPI / pipx / uv
pip install --upgrade vulnparse-pin
# or: pipx upgrade vulnparse-pin

# Verify version and run the offline smoke test
vpp --version
vpp demo --no-ui

(Native APT, DNF, and Homebrew users can run sudo apt-get update && sudo apt-get install --only-upgrade vulnparse-pin, sudo dnf upgrade vulnparse-pin, or brew upgrade qt-ashley/tap-vpp/vulnparse-pin.)


Upgrading from v2.0.x to v2.1.1

v2.1.1 (building on v2.1.0) is an additive, backward-compatible release. Existing configurations, scan pipelines, and .vpp.db workspaces continue working without manual conversion.

What Is New in v2.1.x (v2.1.0 / v2.1.1)

  1. Five New CLI Subcommands (13 Total): Alongside the original v2.0.0 subcommands (scan, demo, diff, ui, export, verify, defer, intel), v2.1.0 adds:
    • vpp gui — Launches the built-in browser workbench over .vpp.db (read-only by default).
    • vpp ml — Inspects, evaluates, calibrates, or trains offline ACI@3.0 and Pre-KEV models (status, eval, calibrate, train).
    • vpp mcp — Runs the read-only-by-default MCP server (stdio or streamable-http).
    • vpp assets — Compiles CMDB/cloud/Nmap exports into assets.yaml, audits .vpp.db coverage drift, or bootstraps Shadow-IT stubs (compile, audit, bootstrap).
    • vpp simulate — Runs read-only counterfactual Remediation@1.0 what-if simulations and exports client-shareable reports.
  2. Automatic DuckDB Workspace Migration (12 -> 14 Tables): Opening an existing v2.0.x .vpp.db workspace in read-write mode automatically runs ensure_v21_schema() (src/vulnparse_pin/storage/repositories.py). This idempotently adds remediation_actions and remediation_action_findings (bringing the workspace to 14 tables), plus the v2.1.0 columns on enrichment_snapshots (EPSS velocity and Pre-KEV signals) and aci_signals (ML capability predictions and attributions). Read-only inspection commands (vpp gui, vpp simulate, vpp mcp without --allow-write) remain compatible with unmigrated v2.0.x databases.
  3. Zero New Mandatory Dependencies: Core installation size and required packages stay unchanged. vpp gui runs directly on the core install with zero external JavaScript/CSS CDNs thanks to PEP 562 lazy loading in src/vulnparse_pin/ui/__init__.py (so vpp ui still uses [ui] only when launched). Optional extras in pyproject.toml are [ui], [mcp], [ml] (onnxruntime), [ml-train] (scikit-learn), [sbom], and [dev].
  4. Safe-by-Default ml.mode: shadow: v2.1.0 defaults ml.mode to shadow. It computes and records explainable ACI@3.0 capability predictions, Pre-KEV early-warning scores, and feature attributions in DuckDB and RunManifest (ml_governance) without changing Scoring@3.0 numerical scores unless you explicitly opt into ml.mode: active (or pass --ml-mode active on vpp scan / vpp demo).
  5. Remediation@1.0 Minimum Patch Sets & New Exports: vpp scan and vpp demo automatically group active findings into ranked remediation actions. vpp export --format adds remediation-json, remediation-md, and simulator-html, and vpp simulate supports --output-html, --output-md, and --output-json.
  6. Pre-KEV CI Gate: vpp diff now accepts --fail-on pre-kev to fail CI builds (exit code 2) when newly detected or re-enriched CVEs trigger Pre-KEV breakout warnings.

Quick v2.0.x -> v2.1.1 Upgrade Steps

  1. Upgrade your installation (pip install --upgrade vulnparse-pin or pipx upgrade vulnparse-pin; add optional extras like [ui,ml] if needed).
  2. Run a quick offline smoke test:
    vpp demo --no-ui
  3. Run a scan or open your existing workspace in the built-in browser workbench:
    vpp gui --db .vpp.db
  4. If you automate assets.yaml upkeep or CI gates, try vpp assets audit --db .vpp.db --assets assets.yaml and vpp diff --db .vpp.db --fail-on pre-kev.

v1.2.x -> v2.0.0 Migration Guide

v2.0.0 was the major platform transition introducing permissive Apache-2.0 licensing, a persistent DuckDB workspace (.vpp.db), streaming XML/SARIF/Nuclei parsers, dual-track Scoring@3.0, ACI@2.0, Triage@2.0 (--profile bod-26-04), scan-over-scan vpp diff, Decision Defense Dossiers, Executive Roadmaps, an optional Textual TUI (vpp ui), and a subcommand CLI.

1. Clean License Cut (AGPL-3.0-or-later -> Apache-2.0)

  • v2.0.0 and later are licensed under the Apache License, Version 2.0 (Apache-2.0) with zero copyleft Python runtime dependencies (cvss replaced by the clean-room Apache-2.0 CVSS v2.0/v3.x/v4.0 calculator in src/vulnparse_pin/utils/cvss_utils.py, and defusedxml replaced by hardened streaming lxml).
  • Historical v1.0.0–v1.2.2 releases remain under AGPL-3.0-or-later. See Licensing for terms.

2. Packaging & Distribution Shift (PyInstaller Retired)

  • Standalone PyInstaller --onefile binaries have been retired after v1.2.2.
  • v2.0.0+ ships as PEP 639 Python wheels and source distributions (with SLSA build provenance and CycloneDX SBOM verification).
  • Install via pipx install "vulnparse-pin[ui]", uv tool install "vulnparse-pin[ui]", pip, or build a container locally using Deployment Options.

3. CLI Subcommand Migration

v2.0.0 moved from top-level flags to purpose-built subcommands (8 in v2.0.0, expanded to 13 in v2.1.0: scan, demo, diff, ui, gui, export, verify, defer, intel, ml, mcp, assets, simulate). Top-level v1.x invocations still run through a compatibility shim with [DEPRECATED] stderr warnings, but all scripts and CI jobs should migrate:

v1.2.x Invocation v2.0.0 Replacement Notes
vpp -f scan.nessus -o out.json vpp scan scan.nessus -o out.json Positional multi-file inputs supported (vpp scan a.nessus b.sarif)
vpp -f scan.nessus --nmap-ctx nmap.xml -o out.json vpp scan scan.nessus --nmap nmap.xml -o out.json --nmap-ctx remains an accepted alias inside vpp scan
vpp --demo vpp demo (or vpp demo --no-ui in CI) New 100% offline bundled multi-scanner demo pack (<2s)
vpp --verify-runmanifest runmanifest.json vpp verify runmanifest.json Strictly read-only by default (no $HOME/XDG writes unless custom --log-file)
vpp --debug-path-policy vpp scan --debug-path-policy Available on any subcommand
n/a vpp diff --fail-on stale-assumption Scan-over-scan delta & CI fail gate
n/a vpp ui --db .vpp.db Optional Textual TUI (vulnparse-pin[ui])
n/a vpp export --format dossier-html Export Dossier, Roadmap, CSV, or JSON from .vpp.db
n/a vpp defer ... Upsert decisions.yaml deferral/acceptance/mitigation rules
n/a vpp intel status / vpp intel sync Cache integrity/freshness checks and feed syncing

Additional CLI behavior changes:

  • --no-csv-sanitize now requires --confirm-unsafe-csv on both vpp scan and vpp export, exiting with code 2 if omitted.
  • --allow-large raises the input size cap from 500 MiB to 50 GiB across FileInputValidator and all streaming parsers.

4. Persistent DuckDB Store (.vpp.db) & Canonical v2 Identity (aid_v2_ / fid_v2_)

  • Scans persist into .vpp.db (12 tables in v2.0.x, expanded to 14 tables in v2.1.0 via automatic ensure_v21_schema(), 0o600 POSIX permissions, symlink-checked).
  • Cross-scanner findings on the same host/service/CVE or non-CVE key are deduplicated deterministically while retaining all scanner-specific rows in finding_evidence.
  • Canonical v2 Identity: Assets and findings in .vpp.db and v2 passes use aid_v2_ and fid_v2_ prefixes (canonicalize_target_key() normalizing IPs, FQDNs, URIs, and container images/repos). Legacy aid_v1_ / fid_v1_ helpers remain for in-memory ScanResult compatibility.

5. Pattern assets.yaml & decisions.yaml

Adopt structured asset inventory and decision governance files:

  • assets.yaml (assets.schema.json): Map hosts, CIDRs, FQDNs, URIs, container images, and globs to owner, criticality, internet_facing, and inventory_status. Unmatched hosts are surfaced as unmatched_shadow alerts.
  • decisions.yaml (decisions.schema.json): Record deferred, accepted, and mitigated entries with explicit assumption predicates (expires_at, in_kev, max_epss, max_epss_percentile, internet_facing, max_cvss). Manage via vpp defer or the f modal in vpp ui.

6. Scoring, EPSS v5, ACI@2.0, Triage@2.0 (bod-26-04) & derived Keys

Packaged configs advance to version: v2 (config.yaml, scoring.json). Legacy v1 config files continue loading with migration warnings during v2.0.x.

Area v1.2.x v2.0.0
Scoring Pass Scoring@2.0 Scoring@3.0: Dual-track (cve_threat Track A + exposure_weakness Track B) weighted by detection_mode Signal Reliability (1.0, 0.90, 0.85, 0.55)
EPSS Scoring Linear scale in Scoring@2.0 Monotonic EPSS v5 piecewise breakpoints ((0.0, 0.0), (0.04, 1.8), (0.10, 3.0), (0.50, 4.2), (1.0, 5.0)) + FIRST percentile
CVSS Provenance NVD / GHSA / Scanner Unified NVD > CNA > GHSA > OSV > Scanner-Supplied > Missing including CVSS v4.0 (cvssMetricV40)
ACI Pass ACI@1.0 (opt-in) ACI@2.0 (default-enabled DuckDB pass across CVE & Track B findings)
Triage / SSVC OAL lanes in reporting Triage@2.0: --profile default or --profile bod-26-04 (CISA BOD 26-04 SSVC Act/Attend/Track*/Track, SLAs 3-day + Forensic Triage/14-day/60-day/Fix on Upgrade, SAST P1-cap guardrail, decisions.yaml reconciliation)
TopN & Summary TopN@1.0, Summary@1.0 TopN@2.0, Summary@2.0
Reports JSON, CSV, Executive/Technical MD Adds Decision Defense Dossiers (.html/.md), Executive Roadmaps (.html/.md), and Diff PR Comments
  1. Upgrade installation (pipx install "vulnparse-pin[ui]" or uv tool install "vulnparse-pin[ui]").
  2. Run vpp demo --no-ui to verify DuckDB and offline reporting in your environment.
  3. Update CI/cron scripts from vpp -f ... / --verify-runmanifest to vpp scan ... and vpp verify ....
  4. Add --confirm-unsafe-csv if any automation intentionally passes --no-csv-sanitize (prefer keeping default sanitization enabled).
  5. Run vpp intel status (and vpp intel sync --refresh if enabling VP_SQLITE_HMAC_KEY or VP_FEED_CACHE_HMAC_KEY for the first time).
  6. Check downstream JSON/automation consumers for Scoring@3.0, ACI@2.0, Triage@2.0, TopN@2.0, and Summary@2.0.

Historical Reference: v1.0.x -> v1.1.x

NOTE
The section below is retained for teams migrating older v1.0.x automation directly or auditing historical v1.x (AGPL-3.0-or-later) pipelines.

Enrichment Flag Model Changed (v1.1.x)

Legacy positive-enable flags (--enrich-kev, --enrich-epss, --enrich-exploit) were removed in v1.1.0 in favor of default-on enrichment with opt-out and source flags:

  • --no-kev, --no-epss, --no-exploit, --no-nvd
  • --kev-source <online|offline>, --epss-source <online|offline>, --exploit-source <online|offline>

GHSA Activation Became CLI-Only

GHSA enrichment does not auto-activate from config.yaml; pass --ghsa (online) or --ghsa <path> (offline) at runtime. Token selection uses enrichment.ghsa_token_env (VP_GHSA_TK) with GITHUB_TOKEN fallback.

Historical Before & After (v1.0.x vs v1.1.x vs v2.0.0)

# Legacy v1.0.x
vpp -f input.xml -o out.json --enrich-kev --enrich-epss --enrich-exploit

# Legacy v1.1.x
vpp -f input.xml -o out.json

# Current v2.0.0
vpp scan input.xml -o out.json --output-runmanifest out.runmanifest.json
vpp verify out.runmanifest.json