Learning center

What evidence must back a supplier's VEX not_affected statement?

A not_affected statement needs a justification you can test against the artifact you received, such as a reachability scan of that binary. If the shipped build contradicts the justification, the statement is wrong for you and the finding stands.

What the specification requires and what it defines#

OpenVEX statements tell a consumer how a vulnerability affects a product. The OpenVEX specification v0.2.0 defines four status labels. For not_affected it says: "No remediation is required regarding this vulnerability. A not_affected status required the addition of a justification to the statement." For affected: "Actions are recommended to remediate or address this vulnerability."

The statement fields table sets the floor: "For statements conveying a not_affected status, a VEX statement MUST include either a status justification or an impact_statement informing why the product is not affected by the vulnerability." It also discourages relying on prose. The impact statement "is not intended to be machine readable so its use is highly discouraged for automated systems."

The five justification labels each name a different claim, and each claim needs different evidence:

LabelThe specification's description, abridgedEvidence that tests it
component_not_present"the component is not included"The artifact's dependency list or SBOM
vulnerable_code_not_present"the vulnerable code is not present. Typically, this case occurs when source code is configured or built in a way that excluded the vulnerable code."Build flags and symbols in the artifact
vulnerable_code_not_in_execute_path"the product includes the vulnerable subcomponent but does not call or use the vulnerable code"A call-graph or symbol scan of the shipped build
vulnerable_code_cannot_be_controlled_by_adversary"This justification could be difficult to prove conclusively."Where the input to the vulnerable call comes from
inline_mitigations_already_exist"These built-in protections cannot be subverted by the attacker and cannot be configured or disabled by the user."The mitigation in the artifact, and proof it cannot be turned off

A sample statement and what tooling checks#

The constructed supplier below ships a Go service, example.com/tagged v1.4.0, that depends on golang.org/x/text v0.3.7, which is in range for GO-2022-1059 (CVE-2022-32149, fixed in v0.3.8). The vulnerable symbols in that advisory are language.ParseAcceptLanguage and language.MatchStrings. The supplier's statement, written with vexctl v0.4.4:

$ SOURCE_DATE_EPOCH=2026-11-20T10:00:00Z vexctl create \
    --product="pkg:golang/example.com/tagged@v1.4.0" \
    --vuln="GO-2022-1059" --aliases="CVE-2022-32149" \
    --status="not_affected" --justification="vulnerable_code_not_in_execute_path" \
    --subcomponents="pkg:golang/golang.org/x/text@v0.3.7" \
    --impact-statement="ParseAcceptLanguage and MatchStrings are not called" \
    --author="Example Supplier" --file supplier.vex.json
"statements": [{
  "vulnerability": { "name": "GO-2022-1059", "aliases": ["CVE-2022-32149"] },
  "products": [{
    "@id": "pkg:golang/example.com/tagged@v1.4.0",
    "subcomponents": [{ "@id": "pkg:golang/golang.org/x/text@v0.3.7" }]
  }],
  "status": "not_affected",
  "justification": "vulnerable_code_not_in_execute_path",
  "impact_statement": "ParseAcceptLanguage and MatchStrings are not called",
  "timestamp": "2026-11-20T10:00:00Z"
}]

vexctl checks the statement's form. It refused a not_affected statement with no justification (either justification or impact statement must be defined when using status "not_affected") and an invented label (invalid justification value "not_called", must be one of [component_not_present, ...]). It has no way to know whether the claim is true.

The supplier's evidence was a source scan. govulncheck v1.10.0 can emit OpenVEX itself, and on the repository with default build settings it produced the same conclusion, labelled with its source:

"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "Govulncheck determined that the vulnerable code isn't called"

The shipped build contradicts the justification#

The repository has a file guarded by //go:build prod that installs a handler calling language.ParseAcceptLanguage. The release binary was built with that tag, and the binary records it:

$ go version -m tagged-v1.4.0
tagged-v1.4.0: go1.24.7
	path	example.com/tagged
	mod	example.com/tagged	(devel)
	dep	golang.org/x/text	v0.3.7	h1:olpw...
	build	-buildmode=exe
	build	-compiler=gc
	build	-tags=prod
	...

A scan of the artifact itself, not the repository, finds the symbol the statement says is never called:

$ govulncheck -db file:///.../vulndb -mode binary ./tagged-v1.4.0
=== Symbol Results ===

Vulnerability #1: GO-2022-1059
    Denial of service via crafted Accept-Language header in
    golang.org/x/text/language
  Module: golang.org/x/text
    Found in: golang.org/x/text@v0.3.7
    Fixed in: golang.org/x/text@v0.3.8
    Vulnerable symbols found:
      #1: language.ParseAcceptLanguage

Your code is affected by 1 vulnerability from 1 module.

A source scan with -tags prod in OpenVEX format agrees and emits "status": "affected". The supplier's statement was true for a build nobody ships.

VEX is built to be applied automatically. The vexctl README at v0.4.4 says its filter outputs "the SARIF result data, but without the vulnerabilities that were stated as not exploitable." Applied to the SARIF from the binary scan, the supplier's document removed the only result:

$ jq '[.runs[].results[] | .ruleId]' scan.sarif.json
["GO-2022-1059"]

$ vexctl filter scan.sarif.json supplier.vex.json > filtered.sarif.json
level=info msg="VEX document contains 1 statements"
level=info msg="Inspecting SARIF run #0 containing 1 results"

$ jq '[.runs[].results[]? | .ruleId]' filtered.sarif.json
[]

The filter matched on the vulnerability and did not compare the build configuration, because the statement names none. Whoever accepts the document is accepting the supplier's scan as a substitute for their own.

What to ask a supplier for#

A justification label is a claim; the evidence is what the supplier ran to reach it. For vulnerable_code_not_in_execute_path on a compiled artifact, ask for the scan of the shipped artifact or its exact build settings, and run your own if you have the binary. For vulnerable_code_not_present, ask which build option removes the code, and confirm the option is in the build information or the symbol table. For the two labels the specification itself calls hard to prove, expect an impact_statement that names the input source or the mitigation, and treat a bare label as unsupported.

The specification's status_notes field is where a supplier can say "how status was determined." A statement whose notes name the tool, its version, and the artifact digest it scanned is one you can reproduce. A statement that names nothing gives you no way to check it.

Decide from the justification and your artifact#

What the VEX statement saysEvidence to collectDecision
not_affected, component_not_presentThe artifact's dependency listAccept if the component is absent; otherwise reject the statement
not_affected, vulnerable_code_not_in_execute_pathA symbol or call-graph scan of the artifact you run, with its build settingsAccept if your scan agrees; keep the finding if it reports the symbol
not_affected, vulnerable_code_not_presentThe build option that excludes the code, visible in the artifactAccept with that record
not_affected, adversary-control or inline-mitigation labels, no impact statementThe input source or mitigation, from the supplierTreat as unsupported until the supplier provides it
affected with an action_statementThe action and whether you can apply itApply the action or upgrade
Statement for a different product version than you runThe product identifier and your versionIt does not apply; ask for a statement for your version

The reachability check behind the disconfirmation here is the one in the guide to govulncheck's called-symbol results. Distributions publish VEX too, and the guide to backported distribution fixes shows how Ubuntu's not_affected and affected records decide a scanner finding.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading