Skip to content
VEX · Practical guide

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.

StatusMeaningWhat follows
Not affectedThe vulnerability cannot be exploited in this productA justification is required; customers suppress the finding
AffectedThe vulnerability is exploitable; the product is impactedShould include remediation or mitigation guidance
FixedAddressed in the referenced versionCustomers upgrade
Under investigationAnalysis is in progressA 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.

SituationOpenVEX / CSAFCycloneDX (closest match)
The vulnerable component is not in the productcomponent_not_presentcode_not_present
The component is there, but not the vulnerable codevulnerable_code_not_presentcode_not_present
The vulnerable code is present but never executedvulnerable_code_not_in_execute_pathcode_not_reachable
An attacker cannot reach or control the vulnerable codevulnerable_code_cannot_be_controlled_by_adversaryrequires_configuration, requires_environment, protected_at_perimeter…
An existing protection prevents exploitationinline_mitigations_already_existprotected_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.

CycloneDX 1.6 example
{
  "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.

OWASP

CycloneDX VEX

VEX can live in the same document as the SBOM. Ideal if you already generate CycloneDX SBOMs: inventory and exploitability travel together.

Minimal

OpenVEX

A minimal, standalone, easily-signed statement. Suited to publishing simple, verifiable VEX assertions independently of the SBOM.

OASIS

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.

  1. 01CVE published
  2. 02Component affected?
  3. 03Exploitable in the product?
  4. 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?
The SBOM lists a product's components; VEX states whether the vulnerabilities in those components are exploitable in the product. The SBOM is the inventory, VEX is the exploitability analysis built on top of it.
What are the standard VEX statuses?
Four statuses: not affected, affected, fixed, and under investigation. The "not affected" status requires a machine-readable justification so the customer can audit the claim.
What is a VEX justification?
It is the reason, drawn from a controlled vocabulary, why a vulnerability is not exploitable, for example "code not present in the build" or "vulnerable code not reachable". It makes the "not affected" claim verifiable.
How do I write a VEX statement?
Identify the component and its exact version (ideally by purl), choose the status, add a justification from the format’s vocabulary if the product is not affected, then one checkable sentence of detail. Publish the statement in the format your customers expect and update it as the analysis evolves.
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?
The three formats (CycloneDX VEX, OpenVEX, CSAF) carry the same information and interoperate. If you already produce CycloneDX SBOMs, CycloneDX VEX is natural. If your customers are large enterprises or public sector, CSAF is often expected. The format is an export decision, not an analysis one.
Is VEX related to the Cyber Resilience Act?
VEX is a useful tool within a CRA process: it helps document the exploitability of a product's vulnerabilities and communicate that information in a structured way. It is not, on its own, proof of compliance: compliance depends on the manufacturer's overall process.
VEX & VAST

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.