A raw list of CVEs matched against your software bill of materials is mostly false positives. The number that matters is not how many vulnerabilities your scanner found; it is how many are actually reachable in your product.
Once a firm starts generating a software bill of materials for every build, the next thing it does is point a vulnerability scanner at it. The scanner matches each component against a feed of known advisories and returns a list. The list is long. It grows every day, because new CVEs are published against dependencies you shipped months ago. A security team that treats that list as a work queue will spend most of its capacity confirming that things are not, in fact, a problem. That is the trap, and VEX is the way out of it.
Why a raw CVE list is mostly noise
A component being present in your dependency graph and a vulnerability in that component being exploitable in your product are two very different claims. A scanner asserts the first. It cannot, on its own, assert the second. Most of the gap between them comes down to reachability: the vulnerable function is never called, the vulnerable code path is guarded by configuration you have switched off, the flaw is in a feature you do not use, or the input that would trigger it can never come from an attacker in your deployment. The advisory is real. The exposure is not.
Free · 4 minutes
Would you survive contact with a determined attacker — or an auditor?
Fourteen questions on access, patching, detection, and recovery — the basics that prevent most real incidents, and the ones most often assumed rather than verified. Banded finding on screen, full sheet by email.
This is why CVSS severity alone is a poor triage signal. A critical-scored flaw in code you never execute is not a critical risk to you; a medium-scored flaw on an internet-facing path with a working exploit might be the thing that ends your quarter. Prioritisation systems that model real-world exploitation — EPSS from FIRST for exploit probability, CISA’s Known Exploited Vulnerabilities catalogue for what is being used in the wild — help rank the list, but they do not tell you whether a given vulnerability applies to your build at all. That determination is yours to make, and VEX is where you record it.
What a VEX statement actually asserts
VEX — Vulnerability Exploitability eXchange — is a small, deliberately narrow idea. For a given vulnerability and a given product, it records one of four statuses: not affected, affected, fixed, or under investigation. The status everyone cares about is not affected, because that is the one that removes an item from the queue. And a responsible VEX format will not let you assert not affected without saying why.
Under the OpenVEX specification, a not affected statement carries one of five machine-readable justifications: component_not_present, vulnerable_code_not_present, vulnerable_code_not_in_execute_path, vulnerable_code_cannot_be_controlled_by_adversary, or inline_mitigations_already_exist. Those five labels — the same set CISA published in its VEX status-justification guidance, and mirrored in the OASIS CSAF VEX profile — are the whole game. Each is a specific, defensible reason a real advisory does not translate into real exposure. “We looked and it is fine” is not one of them. “The vulnerable code is not on any execution path in this service” is.
The point is that VEX turns a triage decision from a comment in a ticket into a structured, portable assertion. It travels with the product, alongside the SBOM you are already generating, signing and attesting in the pipeline. A downstream consumer running the same scanner against your SBOM sees the same long list, then applies your VEX and watches the noise fall away.
The pipeline: match, then suppress with reasons
The mechanics are not hard. Read the package URLs out of a CycloneDX SBOM, batch-query a vulnerability database such as OSV, then fold in a version-controlled triage map that downgrades reviewed, non-reachable findings to not affected with a valid justification. Everything without a recorded decision stays under investigation — which is to say, on the queue. The remediation queue your engineers see is the difference.
#!/usr/bin/env python3
"""Match a CycloneDX SBOM to OSV advisories and emit OpenVEX.
Every finding starts as 'under_investigation'. A reviewed, version-controlled
triage map downgrades non-reachable findings to 'not_affected' with a required
justification, so the queue engineers see is real exposure, not the raw match.
"""
import json, sys, time
from datetime import datetime, timezone
import requests # pip install requests
OSV_BATCH = "https://api.osv.dev/v1/querybatch"
# Only these five justifications are valid for a not_affected status.
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",
}
# Triage decisions keyed by (purl, vuln id). Reviewed, not hand-edited in CI.
TRIAGE = {
("pkg:pypi/jinja2@2.4.1", "CVE-2024-56201"): {
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "Template rendering from untrusted input is never reached in this service.",
},
}
def load_purls(sbom_path):
"""Pull the package URLs out of a CycloneDX SBOM."""
with open(sbom_path, encoding="utf-8") as fh:
sbom = json.load(fh)
return [c["purl"] for c in sbom.get("components", []) if c.get("purl")]
def query_osv(purls):
"""Batch-query OSV; returns {purl: [vuln_id, ...]}."""
body = {"queries": [{"package": {"purl": p}} for p in purls]}
resp = requests.post(OSV_BATCH, json=body, timeout=30)
resp.raise_for_status()
matches = {}
for purl, res in zip(purls, resp.json().get("results", [])):
ids = [v["id"] for v in res.get("vulns", [])]
if ids:
matches[purl] = ids
return matches
def to_openvex(matches):
"""Apply triage and emit an OpenVEX document."""
statements = []
for purl, vuln_ids in matches.items():
for vid in vuln_ids:
stmt = {"vulnerability": {"name": vid}, "products": [{"@id": purl}]}
decision = TRIAGE.get((purl, vid))
if decision and decision["status"] == "not_affected":
just = decision["justification"]
if just not in VALID_JUSTIFICATIONS:
raise ValueError(f"Invalid justification: {just}")
stmt["status"] = "not_affected"
stmt["justification"] = just
stmt["impact_statement"] = decision.get("impact_statement", "")
else:
stmt["status"] = "under_investigation" # stays on the queue
statements.append(stmt)
return {
"@context": "https://openvex.dev/ns/v0.2.0",
"@id": f"https://example.com/vex/{int(time.time())}",
"author": "security@example.com",
"timestamp": datetime.now(timezone.utc).isoformat(),
"version": 1,
"statements": statements,
}
def main():
matches = query_osv(load_purls(sys.argv[1]))
vex = to_openvex(matches)
on_queue = [s for s in vex["statements"] if s["status"] != "not_affected"]
print(json.dumps(vex, indent=2))
print(f"{len(vex['statements'])} findings, {len(on_queue)} on the queue",
file=sys.stderr)
if __name__ == "__main__":
main()
The structure that matters is not the request-response plumbing; it is the triage map. It is reviewed by someone who understands the codebase, it lives in version control, and each entry names a justification a supervisor or a customer could challenge. Suppression without a recorded, defensible reason is just hiding the finding.
The justification is the audit trail
The governance value of VEX is exactly this discipline. When a customer’s security team, or a regulator, asks why you have not patched a critical CVE that their scanner found in your product, “here is the signed VEX statement recording that the vulnerable code is not on any execution path, reviewed on this date by this engineer” is an answer. “It was on a list of four hundred and we did not get to it” is not. VEX converts a triage decision into evidence, and evidence is what survives scrutiny after an incident.
This is also where the discipline connects to obligations you may already carry. Firms in scope of NIS2 have to manage vulnerabilities across their supply chain in a way they can demonstrate, and a defensible record of which advisories apply is part of demonstrating it. Manufacturers preparing for the EU Cyber Resilience Act face vulnerability-handling and reporting duties — the reporting obligations under the Regulation are expected to apply from September 2026, with the broader requirements following in December 2027; verify the exact dates against the published text as you plan. In both cases the ability to say precisely what is and is not exploitable, and to prove you decided it deliberately, is the substance of the obligation.
Where this leaves the queue
Run this properly and the daily scanner output stops being a source of dread and starts being a short, honest list of things that genuinely warrant an engineer’s time. The affected items get fixed or mitigated. The under investigation items get a decision, which either moves them to the fix queue or retires them with a justification. The not affected items are gone, with a reason attached that you would be willing to defend in front of a customer or an auditor. None of this removes the underlying problem that you shipped dependencies you did not choose — but it stops that problem from consuming the capacity you need to deal with the ones that are actually reachable.
The failure mode is not having too many vulnerabilities. It is treating every match as equally real, running out of people, and quietly logging less so the list looks shorter. VEX is the alternative: keep logging everything, and be honest, in writing, about what it means.
Sixteen Pillars is a technology governance consultancy based in Cyprus. Engagements run remote across the EU, UK, and Middle East, with on-site time where the engagement requires it.
Free interactive tool
Website compliance checklist
What your site has to do, based on what it actually does
Answer as much or as little as you like — the list builds as you go. Nothing is stored against your name and no email is required.
Everything that applies
Ordered by what to do first: legal requirements you can close quickly, then larger pieces of work, then what is expected rather than required. Not exhaustive, and not a legal audit.
Dated PDF, yours to keep or circulate.
Free interactive tool
Interactive deadline calculator
Check which regulations apply to you and when
Regulation across the EU, UK, US and Asia-Pacific has moved considerably in the past eighteen months, and several headline dates have shifted more than once. Twelve questions, about three minutes.
Results are shown on screen — no email required. A dated summary is available to download, and can be sent on if that's more useful. What we do with your answers.
Most technology problems are not technology problems. They are control problems.
The systems exist. The investment has been made. The question is whether leadership can understand, direct, evidence, and sustain what those systems produce. Find out where control exists — and where it only appears to.
Full Governance by Sixteen Pillars
Govern your business. Prove your compliance.
A board assurance cockpit for EU-regulated financial firms — tamper-evident, hash-chained proof of governance across DORA, GDPR, NIS2, ISO 27001, the EU AI Act and MiCA. In development.
See what's coming