Design and Architecture
Vulnerability checks
Known vulnerabilities (CVE) in the libraries you declare and in the libraries inside your binaries.
Overview
Vulnerability Insights answers: which known vulnerabilities (CVE) are in what I ship? It matches the libraries of your dependency manifests and the libraries found inside your binaries against the OSV.dev vulnerability database, and reports them with their severity and the version that fixes them.
It builds on two other checks: the SBOM (Settings > Dependency Manifests) and Binary checks. Either one is enough: with only manifests you get the declared libraries, with only binaries you get the libraries actually compiled in.
Quick start
- Declare your dependencies in Settings > Dependency Manifests (vcpkg, Conan, CMake, and so on) and/or list your binaries in Settings > Binary Analysis.
- In Dependency Manifests, allow the online check so that OSV.dev may be called. Without it only the cache of the last check is used.
- Open Settings > Vulnerability Policy and choose the lowest severity that becomes an issue.
- Run the analysis and open Vulnerability Insights > Vulnerability Overview.
What is matched
| Source | What is checked | Notes |
|---|---|---|
| Manifest dependencies | Every component of the SBOM with its name and version. | Read from the SBOM result of the manifests check. |
| Binary components | The libraries recognised inside your binaries: OpenSSL, zlib, libpng, libcurl, SQLite, expat, mbed TLS, libssh2, libtiff, bzip2, Boost, Qt, ICU, Lua. | Needs Binary Analysis. |
| Declared vs. compiled | A binary that contains another version than the manifest declares (drift), or a library no manifest declares. | Needs both sources. |
OpenSSL_1_1_1k, curl-8_0_0, boost-1.78.0). A library that OSV.dev cannot match under its version is reported as not checked, never as safe.Online lookup and cache
- OSV.dev is called only when the online check is allowed in Dependency Manifests (element
AllowOnlineLookup). The consent is given once for SBOM and vulnerabilities. - The environment variable
CPPDEPEND_SBOM_ONLINEoverrides it:1allows,0forbids (useful in CI). - Answers are cached in
vulns-osv-cache.jsonin the output folder. Offline, the cache is used and the page says how old it is. CPPDEPEND_VULNERABILITIES=0switches the whole check off.
Settings
Page Settings > Vulnerability Policy. Saved in the project file, element VulnerabilitySettings.
| Setting | Default | Effect |
|---|---|---|
| Check known vulnerabilities when the analysis runs | On | Switches the check on or off. |
| Libraries found inside the binaries | On | Includes the binary components. |
| Report a binary that contains another version than the manifest | On | Gives VULN-DRIFT-01. |
| Report a library in a binary that no manifest declares | On | Gives VULN-UNDECLARED-01. |
| Create issues for the findings | On | Findings become issues of the tool Vulnerabilities. |
| Lowest severity that becomes an issue | Medium | Lower findings stay on the page only. |
Libraries that only come from manifests are reported by the SBOM tool and are not repeated as issues here, so the same CVE is never counted twice.
Rules and how to fix
| Rule | Severity | What it means | How to fix |
|---|---|---|---|
VULN-CRITICAL-01 | Critical | Component with a critical vulnerability A published vulnerability of critical severity affects the exact version you ship. Critical usually means remote code execution or full data exposure without authentication. | Upgrade the component to the version shown as fixed. If no fix exists, remove the feature that uses it or isolate it, and track the CVE until a fix is released. |
VULN-HIGH-01 | High | Component with a high-severity vulnerability A published vulnerability of high severity affects the version you ship. It is likely to be exploitable in common configurations. | Upgrade to the fixed version. Check in the advisory whether your usage of the library is affected, and plan the upgrade for the next release at the latest. |
VULN-MEDIUM-01 | Medium | Component with a medium-severity vulnerability A published vulnerability affects the version you ship, but exploiting it needs specific conditions. | Upgrade when you next touch the dependency. Read the advisory to see whether your configuration is exposed. |
VULN-LOW-01 | Low | Component with a low-severity vulnerability A published vulnerability of limited impact affects the version you ship. | Upgrade with the next routine dependency update. |
VULN-DRIFT-01 | Medium | Binary contains another version than the manifest The manifest (vcpkg, Conan, CMake...) declares one version, but the binary contains a different one. The vulnerability check of the manifest is then about code you do not ship. | Rebuild the binary from the current manifest, or fix the manifest to the version that is really linked. Check for a system copy of the library that is picked up instead. |
VULN-UNDECLARED-01 | Low | Component in the binary but not in any manifest The binary contains a third-party library that no manifest declares, so the SBOM and the licence and vulnerability checks of the manifests do not see it. Typical case: a library copied into the sources or linked statically from a system package. | Declare the library in your manifest (vcpkg.json, conanfile, CMake FetchContent) so it is tracked, or remove it if it is not needed. |
VULN-UNCHECKED-01 | Info | Component not checked for vulnerabilities The component could not be matched against the vulnerability database (offline without cache, or the library is not known to OSV.dev under its version). | Allow the online check in Settings > Dependency Manifests, or look the library up manually in OSV.dev or the NVD. |
For every vulnerable component the page lists each advisory (OSV id and CVE when there is one), its severity (CVSS v3 base score when available) and the summary.
Where to see results
- Vulnerability Insights > Vulnerability Overview: totals by severity, components with their vulnerabilities, drift and undeclared libraries, components not checked.
- Issues: tool Vulnerabilities.
- File on disk:
<analysis result>.vulns.jsonnext to the analysis result.
How it works
After the SBOM and the binary analysis, the components are merged by name and version. Each one is sent to OSV.dev in one batch query (by repository and tag), the advisories are fetched and their severity is computed from the CVSS v3 vector. The result is cached and written to the sidecar file; findings at or above the chosen severity are appended to the issues. The check never changes your files and sends only library names and versions, never your code.
Limits
- A match depends on the library being known to OSV.dev under that tag. Unknown means not checked.
- A vulnerability in a library does not mean your program is exploitable: it depends on which functions you use and on the configuration.
- The binary version comes from banners and library names; stripped or custom builds may not be recognised.
- No data leaves the machine when the online check is off.
Questions
Nothing is found but I use old libraries.
The online check is probably off and the cache is empty. Look at the status line of the page.
Do I need Binary Analysis?
No. With only manifests you get the declared libraries; binaries add what is really compiled in and the drift check.
Is any code sent to OSV.dev?
No. Only component names, versions and repository tags.
Thanks for your feedback. Tell us more or request a feature.
