VEX in practice: how to write a VEX statement, from CVE to documented decision
Picking the right status, the right justification and the right format, then tying each statement to the right product version. With an annotated CycloneDX example and how justifications map across formats.
VEX in brief
This page assumes you know what VEX is and need to produce it. It follows the order of a real decision: the status, the justification, writing the statement, then the exchange format.
The four VEX statuses
A VEX statement assigns each vulnerability one of four exploitability statuses. The "not affected" status always requires a machine-readable justification, so the consumer can audit the claim.
| Status | Meaning | What follows |
|---|---|---|
| Not affected | The vulnerability cannot be exploited in this product | A justification is required; customers suppress the finding |
| Affected | The vulnerability is exploitable; the product is impacted | Should include remediation or mitigation guidance |
| Fixed | Addressed in the referenced version | Customers upgrade |
| Under investigation | Analysis is in progress | A holding status, updated once the analysis concludes |
Choosing a "not affected" justification
A "not affected" status without a justification is worthless to the customer: they cannot check it. Formats use different vocabularies, but they cover the same cases. The five minimum justifications described by CISA are used by OpenVEX and CSAF; CycloneDX has its own, more granular values.
| Situation | OpenVEX / CSAF | CycloneDX (closest match) |
|---|---|---|
| The vulnerable component is not in the product | component_not_present | code_not_present |
| The component is there, but not the vulnerable code | vulnerable_code_not_present | code_not_present |
| The vulnerable code is present but never executed | vulnerable_code_not_in_execute_path | code_not_reachable |
| An attacker cannot reach or control the vulnerable code | vulnerable_code_cannot_be_controlled_by_adversary | requires_configuration, requires_environment, protected_at_perimeter… |
| An existing protection prevents exploitation | inline_mitigations_already_exist | protected_by_mitigating_control, protected_at_runtime |
Anatomy of a VEX statement
Here is a CycloneDX VEX statement for Log4Shell (CVE-2021-44228) in a product that ships log4j-core 2.14.1 but has the vulnerable class removed from the build.
{
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"version": 1,
"components": [
{
"bom-ref": "log4j-core-2.14.1",
"type": "library",
"name": "log4j-core",
"version": "2.14.1",
"purl": "pkg:maven/org.apache.logging.log4j/log4j-core@2.14.1"
}
],
"vulnerabilities": [
{
"id": "CVE-2021-44228",
"source": { "name": "NVD", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-44228" },
"analysis": {
"state": "not_affected",
"justification": "code_not_present",
"detail": "The JndiLookup class is removed from the log4j-core JAR shipped in this product."
},
"affects": [ { "ref": "log4j-core-2.14.1" } ]
}
]
}- components: the component involved, unambiguously identified by its purl. This is the link to your SBOM.
- analysis.state: the status. CycloneDX uses
not_affected,exploitable,in_triage,resolved… - analysis.justification: required in practice for "not affected", taken from the format’s vocabulary.
- analysis.detail: one human-readable sentence, precise enough to be checked, without revealing more than needed.
- affects: the reference to the component, so to the exact version. A VEX applies to a version, not to "the product" in general.
CycloneDX, OpenVEX or CSAF?
Three machine-readable formats coexist. They all carry the same core information (a product, a vulnerability, a status, a justification) and they interoperate. The choice mostly depends on your ecosystem and on what your customers ask for.
CycloneDX VEX
VEX can live in the same document as the SBOM. Ideal if you already generate CycloneDX SBOMs: inventory and exploitability travel together.
OpenVEX
A minimal, standalone, easily-signed statement. Suited to publishing simple, verifiable VEX assertions independently of the SBOM.
CSAF VEX
A profile of the CSAF standard, expressed as a structured security advisory. Expected by large enterprises and public-sector customers.
VEX and SBOM: two complementary documents
The SBOM (Software Bill of Materials) is the inventory of a product's components: it says what the product contains. VEX says whether the vulnerabilities in those components are exploitable in the product. One does not replace the other.
In practice, the SBOM is the basis for analysis. Cross-referenced with known CVEs, it produces a list of potential vulnerabilities, often long and noisy. VEX turns that noise into a short list of what actually matters: what is genuinely exploitable, and what is not, with a justification.
From CVE to decision
A CVE is a published vulnerability. It becomes exploitable, or not, depending on the product context. VEX is the document that carries that triage decision, in a machine-readable and auditable form.
- 01CVE published
- 02Component affected?
- 03Exploitable in the product?
- 04VEX statement and justification
Producing VEX grounded in the real product
A VEX is only valuable if it is connected to the right product, the right version and the right component. VAST structures that knowledge: Projects, Assets, inventory, versions and dependencies. When a CVE appears, the context needed to decide and to justify is already in place.
VAST helps generate VEX statements connected to this product knowledge, with traceability of decisions over time. The exploitability decision remains explicit and under your teams' control: VAST structures the information, it does not replace security judgment.
Frequently asked questions about VEX
What is the difference between VEX and SBOM?
What are the standard VEX statuses?
What is a VEX justification?
How do I write a VEX statement?
Which justification if the vulnerable function is never called?
vulnerable_code_not_in_execute_path in OpenVEX and CSAF, code_not_reachable in CycloneDX. Only if no external input can lead to it; otherwise, the analysis has to go further.Which VEX format should I choose?
Is VEX related to the Cyber Resilience Act?
Connect your VEX to the knowledge of your products.
Starting from an Asset and its versions, VAST brings together the context needed to decide whether a CVE is exploitable, then to document it.