Design and Architecture
SBOM and dependencies
What your product is built from, which of it has known vulnerabilities, and how to export it as CycloneDX or SPDX.

What is an SBOM
An SBOM (Software Bill Of Materials) is the list of the third-party components your software is built with: name, version, licence and origin. It is the ingredient list of your product.
In CppDepend the page Dependencies & SBOM builds this list for you from the package manifests of your project, adds the licence and the known vulnerabilities of each component, and exports the result as CycloneDX 1.5, SPDX 2.3 or CSV.
Why it matters
When a new CVE is published, the first question is: is our C++ code affected? Without an SBOM the answer takes weeks of searching in build files, wikis and people's heads. With an SBOM it takes minutes: search the library name and version.
- Security: a vulnerability in a library is a vulnerability in your product, and you can only react if you know where the library is used.
- Licences: a copyleft library can force you to publish your own code. Unknown licences must be checked by hand.
- Customers and regulation: the Cyber Resilience Act, NIS2 and the US executive order 14028 increasingly ask for an SBOM in CycloneDX or SPDX format.
Quick start
- Open Settings > Dependency Manifests. The folders of your projects are already scanned; add other folders or remove some if needed.
- Optional: tick the online check to allow the vulnerability lookup (see Vulnerabilities). Nothing is sent until you allow it.
- Run the analysis. The manifests are read during the analysis.
- Open Dependencies & SBOM and press Refresh to read the result of the last analysis.
- Press Export SBOM and choose CycloneDX, SPDX or CSV.
What is read
The analysis looks for these files in the scanned folders:
| Source | What is recognised |
|---|---|
vcpkg.json | Dependencies, with the version when it is given. |
conanfile.txt, conanfile.py | Requirements with their versions. |
CMakeLists.txt / CMake files | find_package, FetchContent, ExternalProject, CPMAddPackage. |
| Git submodules | Each submodule, with its repository address and commit. |
| Meson wraps | Each wrap file. |
The page
The page Dependencies & SBOM shows one row per component and a help panel that explains how it works.
| Column | Meaning |
|---|---|
| Name, Version | The component and its exact version. |
| Source | The manifest file where it was found, relative to the scanned folder. |
| Licence | The licence, with a colour: strong copyleft (red), weak copyleft (orange), unknown (grey), permissive (no colour). |
| Vulnerabilities | The number of known vulnerabilities, None found, Not checked or Check is off. |
| Button | What it does |
|---|---|
| Refresh | Reads the result of the last analysis. It does not scan again. |
| Scan manifests / Check vulnerabilities | Re-run the scan or the check on the current result. |
| Export SBOM | Writes CycloneDX 1.5, SPDX 2.3 or CSV. |
| Folders to scan (settings) | Opens Settings > Dependency Manifests. |
If the folders or the manifests changed since the last analysis, the page asks you to run the analysis again.
Vulnerabilities
Known vulnerabilities come from the public database OSV.dev. The analysis asks it over the internet; without internet access, the result of the last check is used from a cache, and the date of the data is shown on the page.
OSV has no vcpkg or Conan catalogue, so a C++ dependency is looked up by its git repository and tag, its commit, or its OSS-Fuzz name.
| State shown | Meaning |
|---|---|
| None found | The component was checked and no vulnerability is known for this version in the data used. |
| N vulnerabilities | Known advisories, with the id (CVE when available), severity and summary. |
| Not checked | No exact version, no repository, or OSV.dev was not reachable. Not the same as no vulnerability. |
| Check is off | The online check is not allowed. A banner on the page offers to open the settings. |
Licences
The licence comes from a table of well-known libraries. Unknown means the licence must be checked by hand. For the licence headers of your own source files, see Licensing checks.
Export
Export SBOM asks where to save the file and offers three formats:
| Format | File | Content |
|---|---|---|
| CycloneDX 1.5 | <project>.cdx.json | Components (bom-ref, name, version, purl, licence, VCS link), vulnerabilities with an OSV source link and the affected component, metadata with the tool name, timestamp and serial number. |
| SPDX 2.3 | <project>.spdx.json | Packages with SPDXRef ids, purl external references, and the relationships from the document. |
| CSV | <project>-dependencies.csv | One row per dependency, for a spreadsheet. |
The export contains the dependencies currently shown. Run the analysis first so the list and the vulnerability data are up to date.
Issues, rules and gates
The findings (vulnerabilities, licences, dependencies without a version) are imported as issues of the tool SBOM, type SBOM-DEP:.... They are listed in the group SBOM and Dependencies, so you can:
- sort and filter them like any other rule;
- use them in quality gates (for example, fail when a critical vulnerability is found);
- see them in the HTML report and compare them with the baseline.
The inventory itself is the query:
from issue in ImportedIssues
where issue.ToolName == "SBOM" && issue.Type.StartsWith("SBOM-DEP:")
select new { issue, issue.Description }
With the other checks
- Vulnerability Insights joins this list with the libraries found inside your binaries and flags version drift (the binary contains another version than the manifest) and undeclared components.
- Binary Insights detects the libraries inside compiled files.
- Analysis Flow shows whether the dependency folders are configured and whether the online check is allowed.
Limits
- The SBOM comes from manifests. A library copied into the sources without a manifest entry is not listed; Binary Insights can still find it in the compiled file.
- A dependency without an exact version (a range or a variable) is shown as not checked.
- The licence table covers well-known libraries only.
- This is a technical inventory, not legal advice.
FAQ
Is my source code sent anywhere?
No. Only component names, versions and repository addresses are sent to OSV.dev, and only after you allow it.
It says Not checked for a library. Is it safe?
Not necessarily. It means the library could not be matched, for example because it has no version. Add the exact version in the manifest.
Can I use the file with other tools?
Yes. CycloneDX and SPDX are standard formats that vulnerability scanners and compliance tools can import.
How do I answer "are we affected by CVE-X?" quickly?
Run the analysis, open Dependencies & SBOM, filter by the library name and read its version and vulnerabilities, or search the exported CycloneDX file.
Thanks for your feedback. Tell us more or request a feature.
