Day 4: VEX – proving “does not affect us”
Goal: record for version 1.0.0, machine-readable and with justification, which findings do not affect the product, which one does and which one is still being investigated – as an OpenVEX document in Git that Grype and Trivy evaluate when scanning · Duration: about 100 min · Prerequisite: Day 3 completed
State before this chapter
# on werk1
git -C ~/lotse log --oneline --decorate -1Expected (your commit ID differs):
30a5c46 (HEAD -> main) Schwachstellenbewertung 1.0.0 mit Scan-Ergebnissen
~/lotse/SCHWACHSTELLEN.md contains three groups marked
“Tag 4” (Day 4): five Werkzeug advisories about safe_join,
three Jinja2 advisories about the sandbox and the findings in the Python
interpreter.
Introduction
Your Bewerbungslotse 1.0.0 is running at customers’ sites. A customer runs their own scanner over it, sees 266 findings and sends you a worried e-mail. You know from Day 3: some of them are not exploitable in your product at all. But an e-mail saying “don’t worry” convinces nobody, and at the next scan the number is back.
VEX (Vulnerability Exploitability eXchange) solves this. For every assessed vulnerability you write a statement: affected, not affected (with justification), fixed or under investigation. The statements sit in a file that scanners read. The customer scans with your VEX file and sees only what really affects them – and every hidden vulnerability carries your justification.
Today you write this document for version 1.0.0, check it with two scanners and get to know three traps: VEX that does not apply because the scan has the wrong target; VEX that forgets a package; and VEX that a second scanner does not understand because it knows the vulnerability under a different number.
Today you will learn:
- what the four VEX statuses mean and which justifications OpenVEX allows,
- to collect evidence for “not affected” from the image instead of claiming it,
- to create a first statement with
vexctland write a whole OpenVEX document, - how Grype matches a VEX statement to a finding: product by digest, part by purl, vulnerability by number,
- why VEX does not apply when scanning the parts list, but does when scanning the image,
- how aliases make sure that Trivy understands your statements too.
Background
The picture of the day: the workshop note
A supplier reports: “Brake caliper type B may stick in frost.” Your factory has built in type B – but only in a model with heated brakes, where the caliper never drops below zero degrees. Instead of a recall, the quality department writes a workshop note: “Part built in, defect does not affect this model because the brake is heated. Checked on 3 December by the quality department.” Every workshop that inspects the vehicle later finds this note and does not have to investigate again.
- Workshop note = VEX statement.
- Defect notice the note refers to = vulnerability (CVE or GHSA).
- Vehicle model = product, uniquely identified by the image digest.
- Built-in part = subcomponent, identified by its purl.
- “because the brake is heated” = justification and explanation (impact statement).
- Folder with all notes on a model = VEX document.
The terms
| Term | Meaning | In the picture |
|---|---|---|
| VEX | statement whether a vulnerability affects a specific product | workshop note |
| OpenVEX | a lean JSON format for VEX (VEX also exists in CycloneDX and CSAF) | form for the note |
not_affected |
not affected – needs a justification | “does not affect this model” |
affected |
affected – should say what to do (action statement) | “recall needed” |
fixed |
fixed in this version | “part replaced” |
under_investigation |
still being investigated | “under investigation” |
| justification | one of five fixed reasons for not_affected |
justification field |
| impact statement | your own words on why it is not affected | explanation |
| alias | another number for the same vulnerability (GHSA ↔︎ CVE) | second notice number |
Remember: VEX is not a filter you wish for, but a note you sign. Every “not affected” needs a reason that someone else can verify.
What the law requires
The word VEX does not appear in the CRA. But three obligations lead straight to it:
- Annex I, Part I, point 2(a): made available “without known exploitable vulnerabilities”. If you have a known vulnerability in the product and consider it not exploitable, you must be able to justify that.
- Annex I, Part II, point 1: “identify and document vulnerabilities and components”.
- Annex I, Part II, point 6: measures “to facilitate the sharing of information about potential vulnerabilities in their product with digital elements as well as in third-party components contained in that product”.
VEX is the tool that makes exactly this sharing machine-readable. Important: a wrong “not affected” statement is worse than none – it hides a real vulnerability, and Article 64(4) CRA provides for fines for incorrect or misleading information supplied to authorities.
Drill 1: vexctl
Where you are: on werk1.
What you have afterwards: vexctl 0.4.4 under
/usr/local/bin.
vexctl is the command-line tool of the OpenVEX project.
It is shipped as a single file, without an archive.
Step 1 – download and verify.
# on werk1
cd ~/werkzeuge# on werk1
curl -sSLO https://github.com/openvex/vexctl/releases/download/v0.4.4/vexctl-linux-amd64# on werk1
curl -sSLO https://github.com/openvex/vexctl/releases/download/v0.4.4/vexctl_checksums.txt# on werk1
sha256sum --check --ignore-missing vexctl_checksums.txtExpected:
vexctl-linux-amd64: OK
Step 2 – install. The file is called
vexctl-linux-amd64; install puts it in place
under the short name:
# on werk1
sudo install -m 0755 ~/werkzeuge/vexctl-linux-amd64 /usr/local/bin/vexctl# on werk1
vexctl versionExpected (excerpt – below a large banner):
vexctl: A tool for working with VEX data
…
GitVersion: v0.4.4
Step 3 – the permitted justifications.
# on werk1
vexctl list justificationExpected:
Valid Justifications:
component_not_present
vulnerable_code_not_present
vulnerable_code_not_in_execute_path
vulnerable_code_cannot_be_controlled_by_adversary
inline_mitigations_already_exist
| Justification | Meaning | Example |
|---|---|---|
component_not_present |
the part is not in the product at all | the scanner was wrong |
vulnerable_code_not_present |
the part is there, but without the faulty code | package built without the affected module |
vulnerable_code_not_in_execute_path |
the faulty code is there but is never executed | Windows code on Linux |
vulnerable_code_cannot_be_controlled_by_adversary |
it runs, but an attacker cannot reach the input | only fixed internal values |
inline_mitigations_already_exist |
it runs and is reachable, but a protective measure prevents exploitation | input is limited beforehand |
Remember: Five justifications, from “part not there at all” to “protection in front of it”. The further down the table, the more you have to prove.
Save your progress? Sign up for free
Drill 2: Collecting evidence
Where you are: on werk1.
What you have afterwards: evidence from the image for every planned “not affected” statement.
Before you sign anything, you check it. You check in the shipped image, not in your source folder.
Step 1 – which operating system does Python see? The
safe_join vulnerabilities only affect Windows:
# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 python -c 'import sys; print(sys.platform)'python -c '…' runs the Python statement in quotes;
sys.platform names the system Python runs on.
Expected:
linux
Step 2 – does your code use safe_join, templates
or the Jinja sandbox?
# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 grep -n 'safe_join\|render_template\|Sandbox\|jinja' /app/app.pyExpected: no output – grep finds none
of the four words.
Which libraries does app.py import at all?
# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 grep -n '^from\|^import' /app/app.pyExpected:
3:import json
4:import os
5:import uuid
6:from pathlib import Path
8:import requests
9:from flask import Flask, abort, jsonify, request, send_file
What you see: No render_template, no
Jinja, no safe_join. The Lotse responds only with JSON
(jsonify) and files (send_file). Jinja2 is in
the image because Flask brings it along.
Step 3 – where is the sandbox? To be safe: in which
files of the image does SandboxedEnvironment appear?
# on werk1
podman run --rm werk1:5000/bewerbungslotse:1.0.0 grep -rln 'SandboxedEnvironment' /usr/local/lib/python3.12/site-packages --include=*.py| Option | Meaning |
|---|---|
-r |
recursively in all subfolders |
-l |
output file names only |
-n |
line numbers (no effect with -l) |
--include=*.py |
Python files only |
Expected:
/usr/local/lib/python3.12/site-packages/jinja2/sandbox.py
/usr/local/lib/python3.12/site-packages/jinja2/filters.py
The sandbox exists only in Jinja2 itself. Neither Flask nor your code uses it.
Step 4 – does the Lotse speak QUIC? The OpenSSL vulnerability CVE-2026-124709 affects QUIC servers. Read the description:
# on werk1
jq -r '[.matches[] | select(.vulnerability.id == "CVE-2026-124709")][0].vulnerability.description' ~/lotse/scans/grype-1.0.0.jsonExpected (excerpt – the beginning):
Issue summary: A QUIC server that rejects a stream opened by the peer may retain that stream's state for the lifetime of the connection if the peer resets the stream before the rejection is signalled, even though the peer's stream credit is returned. Impact summary: A remote client that completes a QUIC handshake can repeatedly open and reset streams, causing server memory to grow without bound …
And what does the Lotse start with?
# on werk1
podman image inspect werk1:5000/bewerbungslotse:1.0.0 --format '{{.Config.Cmd}}'Expected:
[gunicorn --bind 0.0.0.0:8080 --timeout 300 app:app]
gunicorn listens with plain HTTP over TCP on port 8080 –
no TLS, no QUIC. The Lotse also makes the call to Ollama with plain
HTTP.
Step 5 – which packages carry the OpenSSL vulnerability?
# on werk1
jq -r '.matches[] | select(.vulnerability.id == "CVE-2026-124709") | .artifact.purl' ~/lotse/scans/grype-1.0.0.jsonExpected:
pkg:deb/debian/[email protected]~deb13u1?arch=amd64&distro=debian-13.8&upstream=openssl
pkg:deb/debian/[email protected]~deb13u1?arch=amd64&distro=debian-13.8
pkg:deb/debian/[email protected]~deb13u1?arch=amd64&distro=debian-13.8&upstream=openssl
Three packages from the source package openssl. Remember
them – the diagnosis task shows what happens when one is missing.
Remember: “Not affected” starts with evidence from the shipped image: platform, functions used, start command. Whatever you cannot prove is
under_investigation.
Save your progress? Sign up for free
Drill 3: The first statement with vexctl
Where you are: on werk1.
What you have afterwards: a first VEX statement, generated by
vexctl, and the configuration with which Grype will later read the image directly from the registry.
Step 1 – allow Grype to use the registry. For VEX you will scan the image shortly, not the parts list. For that, Grype needs the same setting as Syft:
# on werk1
nano ~/.grype.yamlregistry:
insecure-use-http: trueStep 2 – a folder for VEX.
# on werk1
mkdir -p ~/lotse/vex# on werk1
cd ~/lotse/vexStep 3 – the product identifier. VEX names the
product with a purl of type oci:
pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse
| Part | Meaning |
|---|---|
pkg:oci/ |
a container image |
bewerbungslotse |
name of the image |
@sha256:b2ff… |
the digest from Day 1 – the statement applies to exactly this image |
?repository_url=werk1:5000/bewerbungslotse |
where the image is stored |
Insert your own digest from Day 1, Drill 1.
Step 4 – the statement.
# on werk1
vexctl create --product="pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse" --subcomponents="pkg:pypi/[email protected]" --vuln="GHSA-f9vj-2wh5-fj8j" --status="not_affected" --justification="vulnerable_code_not_in_execute_path" --impact-statement="safe_join ist nur unter Windows angreifbar; der Bewerbungslotse läuft nur im Linux-Container und ruft safe_join nicht auf." --author="Beispielwerk GmbH, Produktsicherheit" --file=erster-entwurf.openvex.json| Option | Meaning |
|---|---|
--product |
the product (image by digest) |
--subcomponents |
the part in the product that carries the vulnerability (purl from the parts list) |
--vuln |
the vulnerability, under the number Grype reports |
--status |
one of the four statuses |
--justification |
one of the five justifications (mandatory for
not_affected) |
--impact-statement |
the justification in your own words |
--author |
who is responsible for the statement |
--file |
target file |
Expected:
> VEX document written to erster-entwurf.openvex.json
# on werk1
cat ~/lotse/vex/erster-entwurf.openvex.jsonExpected:
{
"@context": "https://openvex.dev/ns/v0.2.0",
"@id": "https://openvex.dev/docs/public/vex-95c56e7aee28d661ddeca45109a64c01609ba290de642b0c54399fe926d3d5df",
"author": "Beispielwerk GmbH, Produktsicherheit",
"version": 1,
"statements": [
{
"vulnerability": {
"name": "GHSA-f9vj-2wh5-fj8j"
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:pypi/[email protected]"
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "safe_join ist nur unter Windows angreifbar; der Bewerbungslotse läuft nur im Linux-Container und ruft safe_join nicht auf.",
"timestamp": "2026-12-03T11:53:27.901713494Z"
}
],
"timestamp": "2026-12-03T11:53:27Z"
}
What you see: A document with a header
(@context, @id, author,
version, timestamp) and a list
statements. Each statement connects one
vulnerability with product, part, status and justification. Calling
vexctl create eleven times for eleven statements would be
tedious and error-prone. So in the next drill you write the whole
document as a file – following this pattern.
Remember: A VEX statement connects four things: vulnerability, product (digest), part (purl) and status with justification. If one is missing or does not match, the statement does not apply.
Save your progress? Sign up for free
Drill 4: The VEX document for 1.0.0
Where you are: on werk1.
What you have afterwards:
~/lotse/vex/bewerbungslotse-1.0.0.openvex.jsonwith eleven statements.
Step 1 – the file. The statements come from your workshop log from Day 3 and the evidence from Drill 2.
# on werk1
nano ~/lotse/vex/bewerbungslotse-1.0.0.openvex.json{
"@context": "https://openvex.dev/ns/v0.2.0",
"@id": "https://beispielwerk.example/vex/bewerbungslotse-1.0.0",
"author": "Beispielwerk GmbH, Produktsicherheit",
"timestamp": "2026-12-03T12:00:00Z",
"version": 1,
"statements": [
{
"vulnerability": {
"name": "GHSA-f9vj-2wh5-fj8j",
"aliases": [
"CVE-2024-49766"
]
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:pypi/[email protected]"
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "safe_join ist nur unter Windows angreifbar; der Bewerbungslotse läuft nur im Linux-Container und ruft safe_join nicht auf.",
"timestamp": "2026-12-03T12:00:00Z"
},
{
"vulnerability": {
"name": "GHSA-29vq-49wr-vm6x",
"aliases": [
"CVE-2026-27199"
]
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:pypi/[email protected]"
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "safe_join ist nur unter Windows angreifbar; der Bewerbungslotse läuft nur im Linux-Container und ruft safe_join nicht auf.",
"timestamp": "2026-12-03T12:00:00Z"
},
{
"vulnerability": {
"name": "GHSA-hgf8-39gv-g3f2",
"aliases": [
"CVE-2025-66221"
]
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:pypi/[email protected]"
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "safe_join ist nur unter Windows angreifbar; der Bewerbungslotse läuft nur im Linux-Container und ruft safe_join nicht auf.",
"timestamp": "2026-12-03T12:00:00Z"
},
{
"vulnerability": {
"name": "GHSA-87hc-h4r5-73f7",
"aliases": [
"CVE-2026-21860"
]
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:pypi/[email protected]"
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "safe_join ist nur unter Windows angreifbar; der Bewerbungslotse läuft nur im Linux-Container und ruft safe_join nicht auf.",
"timestamp": "2026-12-03T12:00:00Z"
},
{
"vulnerability": {
"name": "GHSA-g6x2-hccm-hh4m",
"aliases": [
"CVE-2026-102598"
]
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:pypi/[email protected]"
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "safe_join ist nur unter Windows angreifbar; der Bewerbungslotse läuft nur im Linux-Container und ruft safe_join nicht auf.",
"timestamp": "2026-12-03T12:00:00Z"
},
{
"vulnerability": {
"name": "GHSA-q2x7-8rv6-6q7h",
"aliases": [
"CVE-2024-56326"
]
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:pypi/[email protected]"
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "Die Sandbox von Jinja2 wird nicht verwendet; app.py rendert keine Vorlagen.",
"timestamp": "2026-12-03T12:00:00Z"
},
{
"vulnerability": {
"name": "GHSA-cpwx-vrp4-4pq7",
"aliases": [
"CVE-2025-27516"
]
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:pypi/[email protected]"
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "Die Sandbox von Jinja2 wird nicht verwendet; app.py rendert keine Vorlagen.",
"timestamp": "2026-12-03T12:00:00Z"
},
{
"vulnerability": {
"name": "GHSA-gmj6-6f8f-6699",
"aliases": [
"CVE-2024-56201"
]
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:pypi/[email protected]"
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "Die Sandbox von Jinja2 wird nicht verwendet; app.py rendert keine Vorlagen.",
"timestamp": "2026-12-03T12:00:00Z"
},
{
"vulnerability": {
"name": "CVE-2026-124709"
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:deb/debian/[email protected]~deb13u1"
},
{
"@id": "pkg:deb/debian/[email protected]~deb13u1"
},
{
"@id": "pkg:deb/debian/[email protected]~deb13u1"
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "Die Lücke betrifft nur QUIC-Server. Der Bewerbungslotse spricht nur HTTP über TCP und nutzt OpenSSL nicht für QUIC.",
"timestamp": "2026-12-03T12:00:00Z"
},
{
"vulnerability": {
"name": "GHSA-q34m-jh98-gwm2",
"aliases": [
"CVE-2024-49767"
]
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:pypi/[email protected]"
}
]
}
],
"status": "affected",
"action_statement": "Update auf Werkzeug 3.1.9 mit Version 1.0.1 des Bewerbungslotsen.",
"timestamp": "2026-12-03T12:00:00Z"
},
{
"vulnerability": {
"name": "CVE-2025-12781"
},
"products": [
{
"@id": "pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse",
"subcomponents": [
{
"@id": "pkg:generic/[email protected]"
}
]
}
],
"status": "under_investigation",
"status_notes": "Treffer nur über CPE; Prüfung, ob die Korrektur in Python 3.12.16 enthalten ist, läuft.",
"timestamp": "2026-12-03T12:00:00Z"
}
]
}The document is long but uniform. It pays to read it in blocks:
| Statements | Vulnerabilities | Status | Justification |
|---|---|---|---|
| 1–5 | Werkzeug safe_join |
not_affected |
Windows only, the Lotse runs on Linux and does not call
safe_join |
| 6–8 | Jinja2 sandbox | not_affected |
sandbox not used, no templates |
| 9 | OpenSSL CVE-2026-124709 | not_affected |
QUIC servers only; one part per binary package, so three |
| 10 | Werkzeug CVE-2024-49767 | affected |
reachable; action_statement names the update |
| 11 | Python CVE-2025-12781 | under_investigation |
found only via CPE, investigation ongoing |
Three things differ from the draft in Drill 3:
@id: a permanent identifier of the factory’s own instead of the one calculated byvexctl. It stays the same when you extend the document later; then you increaseversion.aliases: Grype reports Python vulnerabilities under their GHSA number, other scanners under the CVE number.namecarries the GHSA,aliasesthe CVE – that way both sides understand the statement. The challenge shows why this matters.affectedandunder_investigationtoo: VEX is not only there for hiding things. A customer should also be able to read that you know about the Werkzeug vulnerability and what you are doing about it.
Step 2 – count again.
# on werk1
jq '.statements | length' ~/lotse/vex/bewerbungslotse-1.0.0.openvex.jsonExpected:
11
# on werk1
jq '.statements | group_by(.status) | map({status: .[0].status, anzahl: length})' ~/lotse/vex/bewerbungslotse-1.0.0.openvex.jsonExpected:
[
{
"status": "affected",
"anzahl": 1
},
{
"status": "not_affected",
"anzahl": 9
},
{
"status": "under_investigation",
"anzahl": 1
}
]
jq has read the file – so it is valid JSON. A typo in
nano would show up here with an error message.
Remember: The VEX document belongs to the version just like the parts list: one file per shipped version, with a permanent identifier, all statuses and aliases for every scanner.
Save your progress? Sign up for free
Drill 5: Scanning with VEX
Where you are: on werk1.
What you have afterwards: seen when Grype applies your VEX and when it does not – and brought 266 findings down to 255, with eleven hidden with justification.
Step 1 – like yesterday: scan the parts list.
# on werk1
cd ~/lotse/scans# on werk1
grype sbom:../sbom/bewerbungslotse-1.0.0.cdx.json --vex ~/lotse/vex/bewerbungslotse-1.0.0.openvex.json -o json --file grype-sbom-vex.json--vex <file> passes a VEX document to Grype.
Expected:
[0000] WARN registry communication is insecure: insecure-use-http enabled
The warning comes from your ~/.grype.yaml. And the
result?
# on werk1
jq '(.matches | length), (.ignoredMatches // [] | length)' grype-sbom-vex.jsonignoredMatches are the findings that Grype has hidden
because of a rule – for example a VEX statement.
Expected:
266
0
What you see: Nothing is hidden. The VEX did not
apply. The reason: your statements apply to the product
pkg:oci/bewerbungslotse@sha256:b2ff…. But a parts list is
not an image with a digest – Grype cannot match it to any product from
your VEX. The scan has to hit the image itself.
Step 2 – scan the image, first without VEX.
registry: fetches the image from the registry:
# on werk1
grype registry:werk1:5000/bewerbungslotse:1.0.0 -o json --file grype-image-1.0.0.json# on werk1
jq '.matches | length' grype-image-1.0.0.jsonExpected:
266
The same 266 findings as with the parts list – Grype takes the image apart with Syft and arrives at the same result.
Step 3 – the image with VEX.
# on werk1
grype registry:werk1:5000/bewerbungslotse:1.0.0 --vex ~/lotse/vex/bewerbungslotse-1.0.0.openvex.json -o json --file grype-image-vex-1.0.0.json# on werk1
jq '(.matches | length), (.ignoredMatches | length)' grype-image-vex-1.0.0.jsonExpected:
255
11
Step 4 – what was hidden, and why?
# on werk1
jq -r '.ignoredMatches[] | [.artifact.name, .vulnerability.id, .appliedIgnoreRules[0]."vex-status"] | @tsv' grype-image-vex-1.0.0.json."vex-status" needs quotes because the field name
contains a hyphen.
Expected:
libssl3t64 CVE-2026-124709 not_affected
openssl CVE-2026-124709 not_affected
openssl-provider-legacy CVE-2026-124709 not_affected
werkzeug GHSA-29vq-49wr-vm6x not_affected
werkzeug GHSA-87hc-h4r5-73f7 not_affected
jinja2 GHSA-cpwx-vrp4-4pq7 not_affected
werkzeug GHSA-f9vj-2wh5-fj8j not_affected
werkzeug GHSA-g6x2-hccm-hh4m not_affected
jinja2 GHSA-gmj6-6f8f-6699 not_affected
werkzeug GHSA-hgf8-39gv-g3f2 not_affected
jinja2 GHSA-q2x7-8rv6-6q7h not_affected
Nine not_affected statements, eleven hidden findings:
the OpenSSL statement applies to three packages.
Step 5 – and the other two statements?
# on werk1
jq '.matches[] | select(.vulnerability.id == "GHSA-q34m-jh98-gwm2" or .vulnerability.id == "CVE-2025-12781") | {paket: .artifact.name, id: .vulnerability.id, regeln: .appliedIgnoreRules}' grype-image-vex-1.0.0.jsonExpected:
{
"paket": "werkzeug",
"id": "GHSA-q34m-jh98-gwm2",
"regeln": null
}
{
"paket": "python",
"id": "CVE-2025-12781",
"regeln": null
}
What you see: affected and
under_investigation remain in the findings – as they
should. A scanner hides only not_affected (and
fixed).
Remember: VEX applies to a product, that is, to an image with a digest. If you scan the parts list, you are not scanning a product – and your VEX has no effect, without any error message.
Save your progress? Sign up for free
Drill 6: Into Git and into the workshop log
Where you are: on werk1.
What you have afterwards: VEX document, new scans and the updated workshop log under version control.
Step 1 – clear away the draft. The draft from Drill 3 was only for learning:
# on werk1
rm ~/lotse/vex/erster-entwurf.openvex.jsonStep 2 – update the workshop log.
# on werk1
nano ~/lotse/SCHWACHSTELLEN.md# Schwachstellen Bewerbungslotse 1.0.0
Stand: 2026-12-03 · Scanner: Grype 0.122.1 (Datenbank vom 2026-12-03),
Gegenprobe Trivy 0.77.0 · Grundlage: sbom/bewerbungslotse-1.0.0.cdx.json
## Überblick
- 266 Treffer (Grype): 220 Debian, 32 Python, 14 Python-Interpreter
- Im KEV-Katalog der CISA (Stand 2026.11.30): keiner
- Höchstes EPSS: CVE-2026-21441 (urllib3), 2,9 %
## Entscheidungen
| Gruppe | Treffer | Entscheidung | Wann |
|---|---|---|---|
| Python-Pakete außer pip | 26 | aktualisieren auf Mindestversion | Tag 6 |
| davon Werkzeug safe_join (nur Windows) | 5 | für 1.0.0: nicht betroffen, VEX | erledigt |
| davon Jinja2-Sandbox (nicht genutzt) | 3 | für 1.0.0: nicht betroffen, VEX | erledigt |
| pip (nur beim Bau gebraucht) | 6 | aus dem Laufzeit-Image entfernen | Tag 5 |
| Python-Interpreter (über CPE geraten) | 14 | einzeln prüfen; CVE-2025-12781 in VEX als under_investigation | offen |
| Debian mit Korrektur | 3 | Neubau mit aktuellem Grundimage | Tag 6 |
| Debian ohne Korrektur | 217 | Debian-Bewertung übernehmen, Grundimage aktuell halten | laufend |
| davon OpenSSL QUIC CVE-2026-124709 (3 Pakete) | 3 | nicht betroffen, VEX | erledigt |
## VEX
- vex/bewerbungslotse-1.0.0.openvex.json (OpenVEX 0.2.0, 11 Aussagen)
- Produkt: pkg:oci/bewerbungslotse@sha256:b2ff3085… (Digest von 1.0.0)
- Scan mit VEX nur gegen das Image, nicht gegen die Stückliste
## Betrifft uns sicher
- CVE-2024-49767 (Werkzeug 3.0.3, Speicher erschöpfen beim Lesen von
Formulardaten): app.py nimmt Anlagen über request.files an –
erreichbar über POST /api/bewerbungen/<nummer>/anlagen
## Mindestversionen (Python)
| Paket | ist | mindestens |
|---|---|---|
| certifi | 2024.2.2 | 2026.10.18 |
| flask | 3.0.3 | 3.1.3 |
| idna | 3.6 | 3.15 |
| jinja2 | 3.1.4 | 3.1.6 |
| requests | 2.31.0 | 2.33.0 |
| urllib3 | 2.2.1 | 2.8.0 |
| werkzeug | 3.0.3 | 3.1.9 |Changed: the VEX lines are set to “erledigt” (done), the Python interpreter shows the one statement under investigation, the OpenSSL statement has been added as its own “davon” (of which) line under “Debian ohne Korrektur” (Debian without fix), and a new section “VEX” names the file, the product and the most important lesson of the day.
Step 3 – commit.
# on werk1
cd ~/lotse# on werk1
git status --shortExpected:
M SCHWACHSTELLEN.md
?? scans/grype-image-1.0.0.json
?? scans/grype-image-vex-1.0.0.json
?? scans/grype-sbom-vex.json
?? vex/
# on werk1
git add SCHWACHSTELLEN.md vex scans# on werk1
git commit -m "VEX für 1.0.0: 9 nicht betroffen, 1 betroffen, 1 in Prüfung"Expected:
[main bdb2a6a] VEX für 1.0.0: 9 nicht betroffen, 1 betroffen, 1 in Prüfung
5 files changed, 262 insertions(+), 3 deletions(-)
create mode 100644 scans/grype-image-1.0.0.json
create mode 100644 scans/grype-image-vex-1.0.0.json
create mode 100644 scans/grype-sbom-vex.json
create mode 100644 vex/bewerbungslotse-1.0.0.openvex.json
Remember: The workshop note sits in the same folder as the vehicle record: VEX, scans and workshop log go into one commit so that statement and evidence stay together.
Save your progress? Sign up for free
Diagnosis task
A colleague quickly built their own VEX file for the OpenSSL
vulnerability – with the source package openssl as the
part, “that’s OpenSSL, after all”. The customer reports: CVE-2026-124709
still appears twice in their scan. This is how you reproduce it:
# on werk1
mkdir -p ~/kurs/04# on werk1
cd ~/kurs/04# on werk1
vexctl create --product="pkg:oci/bewerbungslotse@sha256:b2ff3085f27993b2f1767af32281662fcedf686c9c8340a84485b85295f0e26f?repository_url=werk1:5000/bewerbungslotse" --subcomponents="pkg:deb/debian/[email protected]~deb13u1" --vuln="CVE-2026-124709" --status="not_affected" --justification="vulnerable_code_not_in_execute_path" --author="Kollege" --file=openssl.openvex.json# on werk1
grype registry:werk1:5000/bewerbungslotse:1.0.0 --vex openssl.openvex.json -o json --file ergebnis.jsonFind out why the vulnerability still shows up twice.
Solution path:
Which packages still carry the vulnerability?
# on werk1 jq -r '.matches[] | select(.vulnerability.id == "CVE-2026-124709") | .artifact.purl' ergebnis.jsonExpected:
pkg:deb/debian/[email protected]~deb13u1?arch=amd64&distro=debian-13.8&upstream=openssl pkg:deb/debian/[email protected]~deb13u1?arch=amd64&distro=debian-13.8&upstream=opensslWhich one was hidden?
# on werk1 jq -r '.ignoredMatches[] | .artifact.purl' ergebnis.jsonExpected:
pkg:deb/debian/[email protected]~deb13u1?arch=amd64&distro=debian-13.8The cause:
pkg:deb/debian/openssl@…is the purl of the binary packageopenssl(the programopenssl), not of the source package. But the scanner reports the vulnerability on every binary package built from the source package – three here. A VEX statement applies only to the parts it names. Theupstream=opensslqualifier in the other purls reveals the common origin but does not make them one part.The solution is in your document from Drill 4: statement 9 names all three binary packages.
The lesson: a VEX part is a built-in package, not an assembly. Take the purls from the scan result, not from memory.
Challenge
Your biggest customer scans with Trivy, not with Grype. Check whether
Trivy understands your VEX document: count Trivy’s findings for the
image without and with --vex, and have it show you the
hidden findings. Explain every difference from Grype.
Solution:
# on werk1
cd ~/kurs/04# on werk1
trivy image --image-src remote --insecure --no-progress --quiet --scanners vuln --format json --output trivy-ohne.json werk1:5000/bewerbungslotse:1.0.0--quietsuppresses the info messages.--scanners vulnsearches only for vulnerabilities, not for secrets – faster.
# on werk1
trivy image --image-src remote --insecure --no-progress --quiet --scanners vuln --vex ~/lotse/vex/bewerbungslotse-1.0.0.openvex.json --show-suppressed --format json --output trivy-mit.json werk1:5000/bewerbungslotse:1.0.0--show-suppressed additionally writes the hidden
findings to the field ExperimentalModifiedFindings.
# on werk1
jq '[.Results[].Vulnerabilities[]?] | length' trivy-ohne.jsonExpected: 264
# on werk1
jq '[.Results[].Vulnerabilities[]?] | length' trivy-mit.jsonExpected: 254
# on werk1
jq -r '.Results[].ExperimentalModifiedFindings[]? | [.Finding.PkgName, .Finding.VulnerabilityID, .Status] | @tsv' trivy-mit.jsonExpected:
openssl CVE-2026-124709 not_affected
openssl-provider-legacy CVE-2026-124709 not_affected
Jinja2 CVE-2024-56201 not_affected
Jinja2 CVE-2024-56326 not_affected
Jinja2 CVE-2025-27516 not_affected
Werkzeug CVE-2024-49766 not_affected
Werkzeug CVE-2025-66221 not_affected
Werkzeug CVE-2026-102598 not_affected
Werkzeug CVE-2026-21860 not_affected
Werkzeug CVE-2026-27199 not_affected
Two differences from Grype:
Trivy names Python vulnerabilities by CVE number (
CVE-2024-49766), Grype by GHSA number (GHSA-f9vj-2wh5-fj8j). Trivy still recognises your statements – thanks to thealiases. Without aliases, Trivy would not have matched any of the eight Python statements; conversely, Grype would not have recognised a statement with the CVE asname. I tried both. GHSA as name, CVE as alias works with both.libssl3t64stays in Trivy’s results. Trivy evaluates VEX along the dependencies: a finding in a package disappears only if all paths from the product to this package count as not affected (Trivy docs, “Applying VEX to Dependency Trees”). Who needslibssl3t64?# on werk1 trivy image --image-src remote --insecure --no-progress --quiet --scanners vuln --format cyclonedx --output trivy-sbom.json werk1:5000/bewerbungslotse:1.0.0# on werk1 jq -r '[.dependencies[] | select(.dependsOn[]? | test("libssl3t64")) | .ref] as $refs | .components[] | select(."bom-ref" | IN($refs[])) | .name' trivy-sbom.jsonThe expression searches
dependenciesfor all entries that depend onlibssl3t64and outputs their names.Expected:
apt libapt-pkg7.0 openssl-provider-legacy opensslThere is a statement for
opensslandopenssl-provider-legacy, but not foraptandlibapt-pkg7.0. Via these paths,libssl3t64still counts as affected for Trivy. Grype checks each package on its own and hides it.
What does this mean for your customer? Tell them which scanner and
which version you used to check your VEX, and add the differences. And
for you: the Lotse does not need apt at runtime at all – on
Day 5 the question arises of what has to be in the runtime image at
all.
Save your progress? Sign up for free
Checkpoint
# on werk1
vexctl versionExpected (excerpt):
GitVersion: v0.4.4
# on werk1
git -C ~/lotse ls-files vexExpected:
vex/bewerbungslotse-1.0.0.openvex.json
# on werk1
jq '(.matches | length), (.ignoredMatches | length)' ~/lotse/scans/grype-image-vex-1.0.0.jsonExpected:
255
11
# on werk1
git -C ~/lotse log --oneline --decorate -1Expected (your commit ID differs):
bdb2a6a (HEAD -> main) VEX für 1.0.0: 9 nicht betroffen, 1 betroffen, 1 in Prüfung
Test yourself
- Which four statuses does VEX know, and which one strictly requires a justification?
- Why does your VEX document not apply when scanning the parts list, but does when scanning the image?
- Your statement on the OpenSSL vulnerability names only
pkg:deb/debian/openssl@…. What happens, and why? - What are
aliasesin a VEX statement for? - Why do you also write
affectedandunder_investigationstatements even though they hide nothing? - From when on would “not affected” be a wrong statement for CVE-2024-49767 (Werkzeug, form data)?
Answers:
not_affected,affected,fixed,under_investigation.not_affectedneeds one of the five justifications, ideally with an impact statement as well.- The statements apply to a product with a digest
(
pkg:oci/…@sha256:…). A parts list is not an image with a digest; Grype cannot match it to any product from the VEX. When scanning the image, Grype knows the digest. - Only the binary package
opensslis hidden;libssl3t64andopenssl-provider-legacyfrom the same source package remain. A statement applies only to the parts it names. - The same vulnerability often has several numbers (GHSA and CVE).
Scanners report different numbers; with
aliases, every scanner finds the statement under its own number. - They inform the customer: the vulnerability is known, it affects
them (or is being investigated), and the
action_statementsays what happens. That is the sharing of information from Annex I, Part II, point 6. - It would be wrong already now: the Lotse accepts attachments as form
data over an open NodePort, so the faulty code runs and is reachable for
attackers. Only a proven protection – such as a size limit in front of
the Lotse that you have measured – could justify
inline_mitigations_already_exist.
Interview note
“What is VEX, and how do you use it?” – Good answer: a machine-readable statement by the manufacturer on whether a known vulnerability affects a specific product – with status, justification and the product by digest. We keep one OpenVEX document per shipped version in the repository and ship it along. If they dig deeper: VEX must fit the scan – product by digest, parts by purl from the scan, vulnerabilities with aliases for GHSA and CVE – and we check it against at least two scanners, because they evaluate VEX differently. And: a wrong “not_affected” is more dangerous than one finding too many.
Enterprise note
Larger manufacturers publish VEX in three ways: as a file next to the release, as a signed attestation attached to the image in the registry (Trivy can find VEX there by itself) and in CSAF documents, the format for security advisories that you will get to know on Day 7. Platforms such as Dependency-Track manage assessments centrally and export them as VEX. An approval process is important: who may sign “not_affected”, and who checks it? Many companies require a second person from the product security team (PSIRT) for this.
Summary
- VEX records per vulnerability:
not_affected(with one of five justifications),affected,fixedorunder_investigation. - Evidence comes from the image: Linux instead of Windows, no
safe_join, no Jinja sandbox, no QUIC. ~/lotse/vex/bewerbungslotse-1.0.0.openvex.jsoncontains eleven statements: nine not affected, one affected with an update plan, one under investigation.- Grype applies VEX only when scanning the image (product by digest): 266 → 255 findings, eleven hidden with justification. When scanning the parts list, VEX does not apply.
- A statement applies only to the packages it names – for Debian, to each binary package individually.
- Trivy understands the statements thanks to aliases, but evaluates
dependencies and leaves
libssl3t64in place.
Commands at a glance
| Command | Purpose |
|---|---|
vexctl list justification |
permitted justifications for not_affected |
vexctl create --product=… --subcomponents=… --vuln=… --status=… --justification=… --file=… |
create a VEX statement |
grype registry:<image> --vex <file> -o json --file <target> |
scan an image with VEX |
jq '(.matches \| length), (.ignoredMatches \| length)' <result> |
count visible and hidden findings |
trivy image … --vex <file> --show-suppressed … |
Trivy with VEX, show hidden findings |
podman run --rm <image> python -c '…' |
check evidence in the image |
podman image inspect <image> --format '{{.Config.Cmd}}' |
start command of an image |