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-lockedexamples/deploy/requirements-runtime.txtand requires--build-arg VPP_PYPI_SHA256=<64-hex>so thevulnparse-pinbinary 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,/etcworkspaces (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/): UpdatesEphemeralGPGSignerfor 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)
- Five New CLI Subcommands (13 Total): Alongside the original
v2.0.0subcommands (scan,demo,diff,ui,export,verify,defer,intel),v2.1.0adds:vpp gui— Launches the built-in browser workbench over.vpp.db(read-only by default).vpp ml— Inspects, evaluates, calibrates, or trains offlineACI@3.0and Pre-KEV models (status,eval,calibrate,train).vpp mcp— Runs the read-only-by-default MCP server (stdioorstreamable-http).vpp assets— Compiles CMDB/cloud/Nmap exports intoassets.yaml, audits.vpp.dbcoverage drift, or bootstraps Shadow-IT stubs (compile,audit,bootstrap).vpp simulate— Runs read-only counterfactualRemediation@1.0what-if simulations and exports client-shareable reports.
- Automatic DuckDB Workspace Migration (12 -> 14 Tables): Opening an existing
v2.0.x.vpp.dbworkspace in read-write mode automatically runsensure_v21_schema()(src/vulnparse_pin/storage/repositories.py). This idempotently addsremediation_actionsandremediation_action_findings(bringing the workspace to 14 tables), plus the v2.1.0 columns onenrichment_snapshots(EPSS velocity and Pre-KEV signals) andaci_signals(ML capability predictions and attributions). Read-only inspection commands (vpp gui,vpp simulate,vpp mcpwithout--allow-write) remain compatible with unmigratedv2.0.xdatabases. - Zero New Mandatory Dependencies: Core installation size and required packages stay unchanged.
vpp guiruns directly on the core install with zero external JavaScript/CSS CDNs thanks to PEP 562 lazy loading insrc/vulnparse_pin/ui/__init__.py(sovpp uistill uses[ui]only when launched). Optional extras inpyproject.tomlare[ui],[mcp],[ml](onnxruntime),[ml-train](scikit-learn),[sbom], and[dev]. - Safe-by-Default
ml.mode: shadow:v2.1.0defaultsml.modetoshadow. It computes and records explainableACI@3.0capability predictions, Pre-KEV early-warning scores, and feature attributions in DuckDB andRunManifest(ml_governance) without changingScoring@3.0numerical scores unless you explicitly opt intoml.mode: active(or pass--ml-mode activeonvpp scan/vpp demo). Remediation@1.0Minimum Patch Sets & New Exports:vpp scanandvpp demoautomatically group active findings into ranked remediation actions.vpp export --formataddsremediation-json,remediation-md, andsimulator-html, andvpp simulatesupports--output-html,--output-md, and--output-json.- Pre-KEV CI Gate:
vpp diffnow accepts--fail-on pre-kevto fail CI builds (exit code2) when newly detected or re-enriched CVEs trigger Pre-KEV breakout warnings.
Quick v2.0.x -> v2.1.1 Upgrade Steps
- Upgrade your installation (
pip install --upgrade vulnparse-pinorpipx upgrade vulnparse-pin; add optional extras like[ui,ml]if needed). - Run a quick offline smoke test:
vpp demo --no-ui - Run a scan or open your existing workspace in the built-in browser workbench:
vpp gui --db .vpp.db - If you automate
assets.yamlupkeep or CI gates, tryvpp assets audit --db .vpp.db --assets assets.yamlandvpp 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 (cvssreplaced by the clean-room Apache-2.0 CVSS v2.0/v3.x/v4.0 calculator insrc/vulnparse_pin/utils/cvss_utils.py, anddefusedxmlreplaced by hardened streaminglxml). - Historical
v1.0.0–v1.2.2releases remain underAGPL-3.0-or-later. See Licensing for terms.
2. Packaging & Distribution Shift (PyInstaller Retired)
- Standalone PyInstaller
--onefilebinaries have been retired afterv1.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-sanitizenow requires--confirm-unsafe-csvon bothvpp scanandvpp export, exiting with code2if omitted.--allow-largeraises the input size cap from500 MiBto50 GiBacrossFileInputValidatorand all streaming parsers.
4. Persistent DuckDB Store (.vpp.db) & Canonical v2 Identity (aid_v2_ / fid_v2_)
- Scans persist into
.vpp.db(12 tables inv2.0.x, expanded to 14 tables inv2.1.0via automaticensure_v21_schema(),0o600POSIX 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.dband v2 passes useaid_v2_andfid_v2_prefixes (canonicalize_target_key()normalizing IPs, FQDNs, URIs, and container images/repos). Legacyaid_v1_/fid_v1_helpers remain for in-memoryScanResultcompatibility.
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 toowner,criticality,internet_facing, andinventory_status. Unmatched hosts are surfaced asunmatched_shadowalerts.decisions.yaml(decisions.schema.json): Recorddeferred,accepted, andmitigatedentries with explicit assumption predicates (expires_at,in_kev,max_epss,max_epss_percentile,internet_facing,max_cvss). Manage viavpp deferor thefmodal invpp 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 |
7. Recommended v1.2.x -> v2.0.0 Upgrade Checklist
- Upgrade installation (
pipx install "vulnparse-pin[ui]"oruv tool install "vulnparse-pin[ui]"). - Run
vpp demo --no-uito verify DuckDB and offline reporting in your environment. - Update CI/cron scripts from
vpp -f .../--verify-runmanifesttovpp scan ...andvpp verify .... - Add
--confirm-unsafe-csvif any automation intentionally passes--no-csv-sanitize(prefer keeping default sanitization enabled). - Run
vpp intel status(andvpp intel sync --refreshif enablingVP_SQLITE_HMAC_KEYorVP_FEED_CACHE_HMAC_KEYfor the first time). - Check downstream JSON/automation consumers for
Scoring@3.0,ACI@2.0,Triage@2.0,TopN@2.0, andSummary@2.0.
Historical Reference: v1.0.x -> v1.1.x
NOTE
The section below is retained for teams migrating olderv1.0.xautomation directly or auditing historicalv1.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