Vulnerability management

Writing a VEX Statement: When "Not Affected" Is Defensible

How to write an OpenVEX statement, what each not_affected justification needs as evidence, and the claims that look like VEX but are really risk acceptance.

TrustIvan ·

A VEX statement is a signed-off answer to a question your customers' scanners keep asking: does this CVE in your software actually affect it? Writing a VEX statement is easy. Writing one that says not_affected and survives a sceptical reader is harder, because the document is consumed by tools that will hide the finding from everyone downstream. This guide covers the format, the five OpenVEX justifications and the evidence each one needs, and the statements that should never be written as not_affected at all.

What is a VEX statement?

VEX (Vulnerability Exploitability eXchange) is a machine-readable assertion, made by someone who knows a product, about whether a specific vulnerability affects that product. A scanner sees a vulnerable package version and reports a finding. A VEX statement adds the context the scanner cannot see: the vulnerable function was compiled out, the package is present but never loaded, or the fix was backported without a version bump.

Three formats carry VEX today:

  • OpenVEX, a small standalone JSON-LD format, currently specification v0.2.0.
  • CycloneDX VEX, the vulnerabilities[].analysis object inside a CycloneDX document, either embedded in the SBOM or published separately.
  • CSAF VEX, a profile of the OASIS CSAF advisory format, common in vendor security advisories.

The examples here use OpenVEX because it is the easiest to write by hand and read in a review. The reasoning transfers to the other two.

What statuses can a statement have?

OpenVEX defines four:

StatusMeaningRequired with it
not_affectedThe product is not affected by this vulnerabilityA justification or an impact_statement
affectedThe product is affectedAn action_statement saying what to do
fixedThis version contains a fixNothing extra
under_investigationThe vendor is still working it outNothing extra

CycloneDX uses different words for the same idea. Its analysis states are not_affected, exploitable, in_triage, resolved, resolved_with_pedigree and false_positive, and its justifications include code_not_present, code_not_reachable, requires_configuration, requires_environment, protected_by_compiler, protected_at_runtime, protected_at_perimeter and protected_by_mitigating_control.

The specification makes a justification optional when an impact statement is given. Treat it as required anyway. A free-text impact statement cannot be filtered, counted or audited by a tool, and a consumer deciding whether to trust your document needs the category.

What does each "not affected" justification need as evidence?

The OpenVEX justifications run roughly from easiest to prove to hardest. The specification itself warns that the last two "could be difficult to prove conclusively". That ordering is a useful guide to how much evidence to keep.

component_not_present. The vulnerable component is not in the product at all. This usually means the scanner matched on something misleading: a CPE that covers a family of products, or a package name shared by two unrelated projects. Evidence: the product's SBOM, showing the component is absent, and the reason the scanner matched anyway. This is the strongest claim you can make, because anyone can check it against the artefact.

vulnerable_code_not_present. The component is included, but the vulnerable code is not. A library built without the optional module that contains the bug, or a distribution package with the fix backported. Evidence: the build configuration flag, or the patch and the distribution's advisory naming it. Tie the statement to the exact product version, because the next build may change the flags.

vulnerable_code_not_in_execute_path. The vulnerable code ships but is never called. This is the justification most often written and least often proven. "We don't use that feature" is a belief, not evidence. Evidence that holds up: a call-graph or reachability analysis showing no path to the vulnerable function, or a code search showing the module is never imported, recorded with the commit it was run against. Re-check it on every release, since one new import makes the statement false.

vulnerable_code_cannot_be_controlled_by_adversary. The code runs, but an attacker cannot reach it with input they control: the vulnerable parser only ever reads a file your build generates, for example. Evidence: the data flow, written down, with the trust boundary marked. Expect a reviewer to push back, and let them.

inline_mitigations_already_exist. The product has a built-in protection that prevents exploitation, which the user cannot configure or disable. OpenVEX is explicit that this has to be a property of the product. A WAF in front of it, a network policy or "it's on an internal network" does not qualify, because your customer may deploy it differently. The specification also notes that mitigation bypasses have a long history. Use this one rarely.

Which statements should never be "not affected"?

Three common cases look like VEX but are something else.

Risk acceptance. "We know, we will fix it next quarter" is a decision not to remediate yet. The product is still affected. Write affected with an action_statement that says when the fix is planned, or what a user can do in the meantime.

Environmental protection. "Only reachable from the admin network" is true of one deployment, not of the product. If it matters, put it in the action_statement of an affected statement as a mitigation the user can apply.

Unfinished analysis. If nobody has looked yet, the status is under_investigation. Publishing not_affected to clear a scanner's report before the analysis is done is how a VEX document loses the trust that made it useful.

A good test: if the statement would become false when a customer changes their configuration, it is not a not_affected statement.

How do you write one?

For a single statement, vexctl from the OpenVEX project will generate the document:

vexctl create \
  --product="pkg:oci/payments-api@sha256%3A4f2b...?repository_url=registry.example.com/payments-api" \
  --vuln="CVE-2023-45853" \
  --status="not_affected" \
  --justification="vulnerable_code_not_present"

For anything you will review, write the JSON yourself so the impact statement says what the evidence is:

{
  "@context": "https://openvex.dev/ns/v0.2.0",
  "@id": "https://example.com/vex/payments-api/2026-10-29-1",
  "author": "Example Corp Product Security <psirt@example.com>",
  "timestamp": "2026-10-29T10:00:00Z",
  "version": 1,
  "statements": [
    {
      "vulnerability": { "name": "CVE-2023-45853" },
      "products": [
        {
          "@id": "pkg:oci/payments-api@sha256%3A4f2b...?repository_url=registry.example.com/payments-api",
          "subcomponents": [{ "@id": "pkg:deb/debian/zlib1g@1.2.13.dfsg-1?arch=amd64&distro=debian-12&epoch=1" }]
        }
      ],
      "status": "not_affected",
      "justification": "vulnerable_code_not_present",
      "impact_statement": "The flaw is in minizip. Debian ships minizip as the separate libminizip1 package, which is not installed in this image."
    }
  ]
}

A few details matter. Name the product by digest, not by tag, because a tag can move to an image the statement was never about. List the affected package as a subcomponent so a consumer can match the statement to one finding rather than to every finding with that CVE in the image. Give the document a stable @id and bump version when you revise it. Then check it:

vexctl validate payments-api.openvex.json

vexctl validate catches the common mistakes, including a not_affected statement with neither a justification nor an impact statement, an invalid Package URL and a malformed hash.

How do consumers apply it?

Most scanners accept a VEX document at scan time and drop the matching findings. With Trivy:

trivy image --vex payments-api.openvex.json \
  registry.example.com/payments-api@sha256:4f2b...

Trivy logs each finding it filtered out, with the VEX format, the status and the justification. That log line is worth keeping in CI output: it is the record of which findings disappeared and why.

When you receive VEX from a supplier, ask what you would accept from your own team. Who wrote it, and is that the vendor's security team or a reseller? Which justification, and does the impact statement name evidence? Is it tied to the digest you run? A not_affected from a vendor is a claim you are choosing to rely on, and your own records should say so.

Who should keep the evidence?

The author. A VEX document carries the conclusion, not the proof, and nothing in the format can hold a call graph. Keep the evidence where a reviewer can find it from the statement: an internal ticket, a link in the impact statement, or a security advisory. When a customer asks why you said not_affected, the answer should take minutes to find, not a week of archaeology.

How does TrustIvan exchange VEX?

TrustIvan exports and imports OpenVEX per asset, and the mapping follows the rules above. On export, an open finding becomes under_investigation, a triaged one affected with a remediation-pending action, a resolved one fixed, and a suppressed one not_affected only if the suppression recorded one of the five OpenVEX justifications. A suppression without a justification exports as affected with "Risk accepted" as the action, because accepting a risk is not a finding that the product is unaffected.

On import, a not_affected statement with a justification suppresses the matching finding through the same finding lifecycle a person uses, and a not_affected without one is not applied. Every change lands on the finding's timeline with the document's @id, author and SHA-256, so a vendor's claim stays attributable to the vendor. The caller needs the suppress permission for any suppression, checked before anything is applied.

VEX narrows a list that still needs ordering. For that, read prioritizing container vulnerabilities with EPSS and KEV, and for what happens to a suppressed finding at release time, see from scan to verdict.