A library used by the Snyk CLI to scan C/C++ projects for known vulnerabilities and open-source license issues. It supports scanning of dependencies in C/C++ projects, including those managed by common build systems. Current stable version is 2.24.3 (February 2026). Regular releases occur monthly with bug fixes and dependency updates. Key differentiators: integrates directly with Snyk CLI, handles large directories, supports purl, and separates vulnerability and license issues.
npm install snyk-cpp-pluginVerified import paths — ran on the pinned version, not inferred.
Scans a C/C++ project directory for vulnerabilities and licenses using the Snyk C/C++ plugin.
Ensure Node.js version is 10 or higher.
Upgrade to version 2.24.1 or later.
Update code to handle separate lists: results.vulnerabilities and results.licenses.
Install minimatch as a direct dependency or upgrade to v2.24.3.
Run `npm install snyk-cpp-plugin` and verify import path.
Use `import { scan } from 'snyk-cpp-plugin'`.Upgrade to version 2.24.1 or later.