What is VEX? OpenVEX and the four statuses explained
By the CapyShield team · · 5 min read
In short
VEX (Vulnerability Exploitability eXchange) is a machine-readable statement of whether a specific product is affected by a specific vulnerability, and OpenVEX is a minimal JSON format for writing it. Every statement has one of four statuses: not_affected, affected, fixed or under_investigation, and a not_affected statement must give a justification or impact statement. Scanners such as Trivy and Grype read VEX with --vex to suppress findings that don't apply, and auditors use it as dated, attributed evidence of each decision.
A vulnerability scanner tells you which known CVEs match the package versions in your software. It can't tell you whether those CVEs matter for your product. VEX is the format for saying that, once, in a way both machines and auditors can read. This post explains what VEX and OpenVEX are, what the four statuses mean, and why scanners like Trivy and Grype accept VEX documents as input.
What is VEX?
VEX (Vulnerability Exploitability eXchange) is a machine-readable statement about whether a specific product is affected by a specific vulnerability. Where an SBOM lists what is inside your software and a scanner lists which known vulnerabilities match those components, a VEX statement adds the missing part: the supplier's assessment of whether each one is actually exploitable in that product.
The concept comes from a US government working group, and CISA published the minimum requirements a VEX document has to meet. VEX is not one file format. The same data model is implemented by several formats:
- OpenVEX, a small JSON-LD format designed only for VEX, maintained as an open specification.
- CycloneDX VEX, VEX data carried in the vulnerabilities section of a CycloneDX document.
- CSAF VEX, a profile of the OASIS Common Security Advisory Framework, used mostly for vendor advisories.
A VEX statement always ties together three things: a vulnerability, one or more products, and a status. Each document also carries an author and a timestamp, so a reader knows who made the claim and when it was true.
What are the four VEX statuses?
Every statement has exactly one of four statuses, defined by the CISA minimum requirements:
not_affected: no remediation is needed. The product contains the component, but the vulnerability cannot be exploited in it. This status must carry a justification or an impact statement explaining why.affected: action is recommended. In OpenVEX, anaffectedstatement should include anaction_statementdescribing how to remediate or mitigate.fixed: these product versions contain a fix for the vulnerability.under_investigation: it is not yet known whether the product is affected. The author is expected to publish an update once it is.
under_investigation is more useful than it looks. It lets a team say publicly "we know about this CVE and we are on it" without guessing, and it makes the gap between known and assessed findings visible instead of hiding it in a spreadsheet.
What justifications can a not_affected statement use?
CISA defined five machine-readable justification labels, and OpenVEX uses them unchanged. Because they are fixed labels, a scanner or a policy engine can act on them without parsing free text:
component_not_present: the vulnerable component is not included in the product at all.vulnerable_code_not_present: the component is included, but the vulnerable code was excluded, for example by build configuration.vulnerable_code_not_in_execute_path: the vulnerable code is present but the product never calls or uses it.vulnerable_code_cannot_be_controlled_by_adversary: the code runs, but an attacker cannot control the input that would trigger the vulnerability.inline_mitigations_already_exist: built-in protections prevent exploitation and cannot be disabled by the user.
The OpenVEX spec itself notes that the last two can be difficult to prove conclusively. The first three are facts about what is in the product and what it executes, which makes them the easiest to back with evidence. An optional free-text impact_statement can add the human explanation next to the label.
What does an OpenVEX document look like?
An OpenVEX document is a JSON object with a context URL, an @id, an author, a timestamp, a version that increments whenever the content changes, and a list of statements. Products are usually identified by Package URL (purl). This is a trimmed document produced by capyshield vex for a small Node.js project:
{
"@context": "https://openvex.dev/ns/v0.2.0",
"@id": "urn:capyshield:vex:sha256:77a1ca99...",
"author": "capyshield",
"timestamp": "2025-11-25T00:00:00Z",
"version": 1,
"statements": [
{
"vulnerability": { "name": "CVE-2022-0235" },
"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)."
},
{
"vulnerability": { "name": "CVE-2021-23337" },
"products": [{ "@id": "pkg:npm/[email protected]" }],
"status": "affected",
"action_statement": "Upgrade lodash to 4.17.21 or later."
}
]
}Statements can also name subcomponents under a product, for example a container image as the product and one package inside it as the subcomponent. That narrows the claim to exactly the component the assessment covers.
Why do scanners and auditors use VEX?
Scanners use it to stop repeating answered questions. Trivy and Grype both accept a VEX file with --vex. Trivy filters a finding when a statement's purl matches the package it detected and the status is not_affected. Grype by default moves not_affected and fixed findings into its ignored list, and can optionally add affected and under_investigation ones. Both have a --show-suppressed flag, so suppressed findings stay inspectable rather than disappearing.
trivy fs --vex release.openvex.json .
grype dir:. --vex release.openvex.jsonAuditors and customers use it as evidence. A spreadsheet of "we checked, it's fine" has no structure and no history. A VEX statement names the CVE, the exact package version, a standard justification, who made the call and when. Shipping it next to a release lets a customer run their own scanner against your artifact and get the same answer you did, instead of filing a ticket for every CVE in your dependency tree.
Teams use it to keep decisions with the code. A VEX file versioned in the repository is reviewed in pull requests like any other change, and it travels with the release it describes.
How do you produce VEX without writing it by hand?
Writing statements by hand works for a handful of CVEs. The OpenVEX project's vexctl creates and merges documents from the command line. For the first pass over a scanner report, CapyShield's vex command reads a Trivy, Grype or OSV-Scanner JSON report, checks each finding against your lockfiles and production imports, and writes OpenVEX v0.2.0:
trivy fs --format json -o trivy-report.json .
capyshield vex --input trivy-report.json --repo . --output release.openvex.jsonPackages that are dev-only, or direct dependencies production code never imports, become not_affected with vulnerable_code_not_in_execute_path. Packages imported in production become affected with an upgrade action_statement. Everything else stays under_investigation rather than being guessed, and the facts behind each decision are recorded in the statement's status_notes. Decisions that need a human, such as vulnerable_code_cannot_be_controlled_by_adversary, go in .capyshield/vex-rules.yaml next to the code. The CLI is open source, and the docs cover running it in CI.
Frequently asked questions
- What is VEX in vulnerability management?
- VEX (Vulnerability Exploitability eXchange) is a machine-readable statement saying whether a product is affected by a specific vulnerability. It adds the supplier's exploitability assessment to what an SBOM and a scanner already report.
- What are the four VEX statuses?
- not_affected, affected, fixed and under_investigation. A not_affected statement must include a justification or an impact statement, and in OpenVEX an affected statement should include an action statement describing remediation.
- What is the difference between VEX and OpenVEX?
- VEX is the data model defined by CISA's minimum requirements; OpenVEX is one format that implements it as small JSON-LD documents. CycloneDX and CSAF can carry VEX data too.
- Which scanners can read OpenVEX files?
- Trivy and Grype both accept OpenVEX with the --vex flag and suppress findings marked not_affected. Grype also suppresses fixed findings by default, and both offer --show-suppressed to review what was filtered.