What does OSV-Scanner do?
OSV-Scanner is an open-source tool from Google that matches identified components against the OSV vulnerability database. It can use supported dependency and lock files, as well as software bills of materials, known as SBOM. An SBOM describes the components of a piece of software.
The output flags matches with known security advisories. It is neither proof of exploitation nor an exhaustive analysis of every flaw in your own code. Coverage depends on the ecosystems, formats and information the tool recognises.
Running a first scan with OSV-Scanner V2
Install the tool from its official releases, then open a terminal in the project folder. The following command recursively searches for supported files in the current folder and its subfolders:
osv-scanner scan source -r .
The -r option means “recursive”. The dot is the current folder: check the chosen directory before running the scan. You can also target a supported lock file explicitly, for example:
osv-scanner scan source --lockfile=package-lock.json
By default, component information may be sent to vulnerability lookup services. For a project with confidentiality constraints, read the documentation on the data exchanged and offline mode before choosing your configuration.
Remediation: from an alert to a verified fix
- Understand: open the associated advisory and check the component, the detected version, the affected versions and the exploitation conditions.
- Prioritise: consider the service’s real exposure, how the component is used and the possible consequences. The severity score doesn’t replace that context.
- Fix: apply the appropriate update, update the lock files and test that the application works.
- Verify: rerun the scan after the change, then check that the fixed artefact is actually deployed in the relevant environment.
Good follow-up
Keep the scan date, its scope and the decision taken for each alert. A clean result is no guarantee there are no vulnerabilities. Nor does a repository scan prove that every server runs the same version.
How dMessage helps: alerting teams at the right time
If the fix requires downtime or action from users, dMessage can display the instruction on targeted Windows PCs: save your work, close an application or wait for confirmation that service is back. The message should name the service concerned, the time window and the support contact.

OSV-Scanner detects technical matches; dMessage passes instructions on to the people concerned. Choosing, testing and deploying fixes remain the responsibility of the technical teams.
Sources and documentation
- Google: official introduction to OSV-Scanner
- OSV-Scanner: installation
- OSV-Scanner V2: scanning a project and lock files
- Official repository: data sources and privacy
- OSV-Scanner: offline mode
Cyber awareness, right on screen
Turn your technical alerts into clear instructions
Warn teams about maintenance and announce when service is back, right on their Windows PCs. Discover dMessage with a free 30-day trial.