CLI
VEX & reachability
How CapyShield turns scanner noise into OpenVEX, locally.
VEXVulnerability Exploitability eXchange — a statement of whether a product is actually affected by a known vulnerability. turns scanner noise into OpenVEXOpenVEX — an open, machine-readable VEX format that CapyShield writes locally. by checking, locally, whether a vulnerable package is actually reachable from your code.
Reachability, not guesses
For each finding it uses import-level facts:
- in_lockfile — is the package installed?
- dependency_scope —
direct,transitive,dev_onlyornot_found? - imported_in_prod — is it imported by code that ships?
- matched_files — which files reference it (sent as real relative paths unless
--redact-pathsorvex.redact_paths: trueis set; then assha256:<hex>)?
Statuses
| Status | In the dashboard | Meaning |
|---|---|---|
| affected | Affected | Imported by production code — act on it. |
| not_affected | Not affected | Dev-only, declared but not imported by production code, or a rule clears it. |
| under_investigation | Under investigation | Not enough facts yet (e.g. a transitive package nothing in production imports). |
| fixed | Fixed | Set only by a rule: the version you ship is no longer vulnerable. |
Who decided
Every finding is labelled by its source: local_rule (the project's .capyshield/vex-rules.yaml), cloud_rule (team rule) or reachability. Local rules always win.
Example output
OpenVEX JSON written locally (to stdout unless --output is set):
json
{
"@context": "https://openvex.dev/ns/v0.2.0",
"@id": "urn:capyshield:vex:sha256:77a1ca9971b54ef5f6c47f3693bef4d42aa2390a1d7d2ce6155c9df539df30b6",
"author": "capyshield",
"tooling": "capyshield/0.2.1",
"version": 1,
"timestamp": "2026-11-27T10:15:30Z",
"statements": [
{
"vulnerability": { "name": "CVE-2024-29041" },
"products": [{ "@id": "pkg:npm/[email protected]" }],
"status": "affected",
"action_statement": "Upgrade express to 4.19.2 or later.",
"status_notes": "capyshield reachability: in_lockfile=true dependency_scope=direct imported_in_prod=true matched_files_count=1"
},
{
"vulnerability": { "name": "CVE-2024-39338" },
"products": [{ "@id": "pkg:npm/[email protected]" }],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "Declared dependency that no production source file imports (static import analysis).",
"status_notes": "capyshield reachability: in_lockfile=true dependency_scope=direct imported_in_prod=false matched_files_count=0"
}
]
}Markdown summary (from --summary vex.md):
markdown
# CapyShield VEX summary
2 findings: 1 affected, 1 not_affected
| Vulnerability | Package | Severity | Status | Scope | Imported in prod | Files |
|---|---|---|---|---|---|---|
| CVE-2024-29041 | [email protected] | medium | affected | direct | true | `src/server.js` |
| CVE-2024-39338 | [email protected] | high | not_affected | direct | false | |Terminal output:
terminal
capyshield: 2 trivy finding(s), 1 source file(s) analyzed: 1 affected, 1 not_affected, 0 under_investigation, 0 fixed
affected CVE-2024-29041 [email protected] (medium, imported in 1 file(s))
capyshield: wrote openvex.json