# Answer the client's CVE list with VEX, not a reassuring email

> The client's scanner will read your verdicts and hide findings accordingly, but it never checks the evidence behind them, so that job stays with you.

Original: https://fdetimes.net/en/guides/vex-answer-client-vulnerability-scan/

A week before go-live, the client's security team sends over a long table of CVEs found in your image, with a request to resolve all of them before the production date.

Some of the entries are real. The rest may be false positives: the library is present but the vulnerable code never runs, or the fix has already been backported. Red Hat has warned that backported security fixes can cause scanners to raise false alarms if they misidentify what they are looking at.

You cannot upgrade everything in a week, and an email saying "this one doesn't affect us" is something nobody can verify. VEX addresses that gap: you write your conclusions into a structured file, and the client's scanner can read it.

Two familiar open-source scanners both accept VEX files. Trivy takes a local OpenVEX file through the `--vex` flag. Grype also uses `--vex`, accepts both OpenVEX and CSAF VEX, and by default moves findings marked `not_affected` or `fixed` to its ignored list.

That "by default" deserves attention. The scanner filters on the status you declare and does not check your reasoning, so a wrong statement hides a CVE just as effectively as a correct one. Verification is therefore your job, and evidence is the only thing that lets the client's security team check your work for themselves.

In return, filtered findings do not vanish entirely. Both Trivy and Grype have a `--show-suppressed` flag that brings hidden findings back into view, and Grype's results table marks them as suppressed by VEX. An argument conducted by email becomes a technical document that both sides can inspect.

## Each status demands its own kind of evidence

OpenVEX describes itself as a lightweight implementation of VEX, designed to be embedded in other documents. According to Chainguard, each OpenVEX document is a JSON-LD file containing only the minimum requirements of VEX, which makes it an easy place to start. The four statuses it uses are common VEX labels, and SUSE's VEX documentation lists the same four.

| Status | Meaning | Requirements and caveats |
|---|---|---|
| `not_affected` | The product is not affected | OpenVEX requires either a `justification` label or an `impact_statement` |
| `affected` | The product is affected | State clearly what the client should do: which version to upgrade to, and when |
| `under_investigation` | Not yet known whether these versions are affected | Use it for entries you have not finished analyzing |
| `fixed` | Fixed in this version | Docker notes that VEX-aware scanners may handle this status inconsistently |

Each `justification` label is a distinct argument. OpenVEX defines `vulnerable_code_not_present` as the component being present in the artifact while the vulnerable code is not, typically because of how the source was configured or built. `inline_mitigations_already_exist` refers to built-in protections that prevent exploitation. Whichever argument you choose, you have to be able to prove that specific one.

If the client insists on an OASIS standard, CSAF 2.0 has its own VEX profile. For every `known_not_affected` product, the profile requires an impact statement, either as a machine-readable flag or as a threat entry of category impact. The formats differ, but the principle is the same: "not affected" must always come with a reason.

**Key point:** A "not affected" line without evidence is a promise, not an answer.

## A worked case from start to finish

The following example is hypothetical. You deploy a Go service called `acme-api` into the client's cluster. The scanner reports a CVE in the library `example.com/textparse` at version v1.8.0, and the vulnerability description shows the bug sits in a function your service does not use.

The first piece of evidence comes from `govulncheck`. The tool uses static analysis to narrow the list of reports, and can export its results directly as OpenVEX with `-format openvex`. Treat that output as evidence to attach, but still read the code before putting your name to the conclusion.

Suppose the results show the module is imported but the vulnerable function lies on no execution path. You write an OpenVEX statement:

```json
{
  "@context": "https://openvex.dev/ns/v0.2.0",
  "@id": "https://example.com/vex/acme-api-1.4.2",
  "author": "Acme deployment team",
  "timestamp": "2026-12-02T09:00:00Z",
  "version": 1,
  "statements": [
    {
      "vulnerability": { "name": "CVE-XXXX-YYYY" },
      "products": [
        { "@id": "pkg:golang/example.com/textparse@v1.8.0" }
      ],
      "status": "not_affected",
      "impact_statement": "acme-api 1.4.2 only calls textparse.Tokenize; the vulnerable function is never reached (govulncheck output attached)."
    }
  ]
}
```

Three details matter here. The PURL states `@v1.8.0` explicitly. The `impact_statement` alone satisfies the spec, but it is written for a reader on the client's side: how you checked, and what you attached. If a `justification` label matches the evidence exactly, add it so machines can read it too; do not pick a label because it sounds close enough.

The next step is to prove the file works in the client's own tools. With Trivy:

```bash
trivy image registry.example.com/acme-api:1.4.2 --vex acme-api.openvex.json --show-suppressed
```

Trivy's documentation still marks local VEX support as experimental, so rerun the check whenever the client upgrades Trivy. Grype's syntax is almost identical, and you can pass several VEX files separated by commas:

```bash
grype registry.example.com/acme-api:1.4.2 --vex base.openvex.json,acme-api.openvex.json --show-suppressed
```

What you send alongside the VEX file is the before results, the after results, and the reason each line disappeared. The client's security team only has to rerun the same command to see what you saw.

## A process for the whole CVE table

When the table is long, working in the right order keeps you from missing entries. First, sort every finding into the four statuses, and do not hesitate to mark entries you have not reviewed as `under_investigation`. The label means exactly "not yet known", and a vendor willing to say so is more credible than one for whom everything is "not affected".

Next, gather evidence for each `not_affected` entry: reachability analysis output, the diff of a backported fix, or configuration showing the component is absent from the image. For each `affected` entry, spell out which version to upgrade to and when, or which feature to switch off in the meantime.

Finally, rerun the scanner with the VEX file, check every suppressed finding, and only then send it.

## Mistakes that cost you the security team's trust

The easiest mistake is leaving the version out of the PURL. Your evidence covers only the build you analyzed, such as v1.8.0 in the example above, so include the version so the scope of the statement matches the scope of the evidence. A conclusion about v1.8.0 says nothing about a later upgrade.

Another is using `fixed` for backports simply because it sounds right. Docker Hardened Images do not use `fixed`: according to Docker, VEX-aware scanners may handle the status inconsistently when a fix has been backported but the version number does not reflect it. In those cases Docker uses `not_affected` with the `inline_mitigations_already_exist` label.

That is one vendor's practice, not a rule in the VEX spec. The safer approach is to read each label's definition and choose the one that matches the evidence you actually have. If the evidence is a diff showing the vulnerable code has been replaced, record it in the `impact_statement` so the client's reviewers can check it themselves.

The third mistake is hunting for a way to silence warnings in each individual tool. `govulncheck` does not support suppressing individual findings, so the place to record your conclusions is the VEX file, which every scanner the client uses can read.

The last mistake is treating the VEX file as finished. Each statement is tied to a specific version, so every dependency change means another review.

## A skill worth putting on your CV

The `acme-api` case above is enough for a line on a CV: one CVE, `govulncheck` output as evidence, and an OpenVEX file that works with the client's Trivy and Grype. Rather than writing "security experience", write that chain out: wrote VEX for a go-live, backed it with reachability analysis, and helped the client close a given number of findings without moving the schedule.

When reading FDE job listings, look for those that mention SBOM, VEX or supply chain security. If they do, ask directly in the interview who currently answers clients' vulnerability scan reports; the answer tells you whether this work is part of the day job.

This week's exercise: pick an image you run, take one CVE you believe does not affect it, and write a VEX statement that a stranger on a security team could verify on their own after reading it. If you cannot find evidence to put in the `impact_statement`, the correct answer for that CVE is `under_investigation`.

**Try this week:**

- Load the same VEX file into both Trivy and Grype with --show-suppressed, and compare which entries each tool hides.
- Go back through the FDE job listings you are watching and flag the ones that mention SBOM, VEX or supply chain security.

## Sources

- [OpenVEX Specification v0.2.0 (OPENVEX-SPEC.md)](https://raw.githubusercontent.com/openvex/spec/main/OPENVEX-SPEC.md)

- [What is OpenVEX? (Chainguard)](https://www.chainguard.dev/supply-chain-security-101/what-is-openvex)

- [SUSE CSAF/VEX image scanning: vex.md (mirror at ftp.gwdg.de)](https://ftp.gwdg.de/pub/linux/suse/projects/security/csaf-vex/image-scanning/docs/vex.md)

- [Common Security Advisory Framework Version 2.0 (OASIS Standard)](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html)

- [Docker Docs: Vulnerability Exploitability eXchange (VEX)](https://docs.docker.com/dhi/explore/security-concepts/vex/)

- [A quickstart guide on vulnerability scanners: how they work and why they differ](https://www.redhat.com/en/blog/a-quickstart-guide-on-vulnerability-scanners-how-they-work-and-why-they-differ)

- [Anchore OSS Docs: Filter scan results](https://oss.anchore.com/docs/guides/vulnerability/filter-results/)

- [Trivy Docs: Local VEX Files](https://trivy.dev/docs/latest/supply-chain/vex/file/)

- [Trivy Docs: Filtering](https://trivy.dev/docs/latest/configuration/filtering/)

- [govulncheck command (golang.org/x/vuln/cmd/govulncheck)](https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck)
