PricingDownload
Product

Platform

All features48 capabilities, from IDE to CICompliance KitsISO 26262, DO-178C, IEC 62304...AI GovernanceControl AI-generated C/C++ codeWhat’s new in 2027Latest version highlightsScreenshotsSee the product in action

Analyze & improve

Coding standardsMISRA, CERT, CWE, AUTOSARArchitecture & dependenciesGraphs, matrix, cyclesSBOM & dependenciesIs our C++ code affected? Minutes, not weeksTechnical debtMeasured in hours and dollarsQuality gatesStop regressions in CISmart Code CityYour codebase in 3D

Integrations

IDE pluginsVisual Studio, VS Code, CLion...CI/CD pipelinesJenkins, Azure DevOps, GitHub, GitLabSonarQube pluginC/C++ results in SonarQubeExternal analyzersClang-Tidy, Cppcheck, coverageFeature on Demand
Solutions

By need

Functional safetyCompliance kits per standardCoding standardsMISRA, CERT, AUTOSAR, ISO...Legacy modernizationRefactor large C/C++ safelyCode auditExpert review of your codebaseM&A due diligenceAssess technical health fast

By role

DevelopersSoftware architectsTech leadsDevOps engineersEngineering managersProject managers

CTOsCIOs / IT leadersQA engineersSecurity leadersComplianceConsultantsRequest a guided PoC
Industries

Safety-critical

AutomotiveISO 26262, MISRA, AUTOSARAerospace & DefenseDO-178C programsMedical DevicesIEC 62304 softwareEnergy & UtilitiesIEC 61508 systemsEmbedded SystemsFirmware and devices

Enterprise

Financial ServicesTrading and paymentsGame DevelopmentEngines and large C++Software VendorsCommercial C/C++ productsGovernmentAgencies and contractorsAll industries & case studies
Resources

Learn

DocumentationGuides, rules and CI setupKnowledge baseFrequently asked questionsBlogC and C++ code quality articlesRelease notesEvery version since 2009

Customers

Case studiesSuccess storiesTestimonialsWhat users sayOur customersCompanies using CppDependGold Code QualityOpen source projects we rate

Programs & company

Feature on DemandMissing features built for freeFree for open sourceLicenses for OSS and studentsContact usSales and supportEULALicense agreement
Docs
Documentation

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.

5 min readDesign and ArchitectureCppDepend 2027

Dependencies and SBOM page in CppDepend

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

  1. Open Settings > Dependency Manifests. The folders of your projects are already scanned; add other folders or remove some if needed.
  2. Optional: tick the online check to allow the vulnerability lookup (see Vulnerabilities). Nothing is sent until you allow it.
  3. Run the analysis. The manifests are read during the analysis.
  4. Open Dependencies & SBOM and press Refresh to read the result of the last analysis.
  5. Press Export SBOM and choose CycloneDX, SPDX or CSV.

What is read

The analysis looks for these files in the scanned folders:

SourceWhat is recognised
vcpkg.jsonDependencies, with the version when it is given.
conanfile.txt, conanfile.pyRequirements with their versions.
CMakeLists.txt / CMake filesfind_package, FetchContent, ExternalProject, CPMAddPackage.
Git submodulesEach submodule, with its repository address and commit.
Meson wrapsEach wrap file.
Binaries are covered separately: the libraries found inside your compiled files (OpenSSL, zlib, SQLite...) come from Binary checks and are joined with the manifest list in Vulnerability Insights.

The page

The page Dependencies & SBOM shows one row per component and a help panel that explains how it works.

ColumnMeaning
Name, VersionThe component and its exact version.
SourceThe manifest file where it was found, relative to the scanned folder.
LicenceThe licence, with a colour: strong copyleft (red), weak copyleft (orange), unknown (grey), permissive (no colour).
VulnerabilitiesThe number of known vulnerabilities, None found, Not checked or Check is off.
ButtonWhat it does
RefreshReads the result of the last analysis. It does not scan again.
Scan manifests / Check vulnerabilitiesRe-run the scan or the check on the current result.
Export SBOMWrites 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.

Privacy. The check sends the name and version of each dependency and its repository address with the tag or commit. It never sends your source code. Nothing is sent until you allow the online check in Settings > Dependency Manifests. Until then dependencies show as Not checked, which does not mean they have no vulnerability.
State shownMeaning
None foundThe component was checked and no vulnerability is known for this version in the data used.
N vulnerabilitiesKnown advisories, with the id (CVE when available), severity and summary.
Not checkedNo exact version, no repository, or OSV.dev was not reachable. Not the same as no vulnerability.
Check is offThe 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:

FormatFileContent
CycloneDX 1.5<project>.cdx.jsonComponents (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.jsonPackages with SPDXRef ids, purl external references, and the relationships from the document.
CSV<project>-dependencies.csvOne 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.

Was this page helpful?
Evaluating CppDepend on a production codebase?Get a guided proof of concept with our static analysis architects.
Request a PoC