What do you want to do?
3 use cases
-
Scan a project for vulnerable dependencies
Recursively scan a source directory and list known vulnerabilities in its dependencies.
View prompt
Using google/osv-scanner, install it with `go install github.com/google/osv-scanner/v2/cmd/osv-scanner@latest`, run `osv-scanner scan source -r /path/to/your/dir` on <my repo>, and summarise the findings by severity with the fix for each.
-
Scan a container image and check licenses
Scan an image layer by layer, then check dependency licenses against an allow list.
View prompt
With google/osv-scanner, run `osv-scanner scan image my-image-name:tag` for <my image>, then `osv-scanner --licenses path/to/repository` for <my repo>, and list anything that breaks an allowed list of MIT and Apache-2.0.
-
Scan dependencies without a network connection
Download the vulnerability database once, then scan locally with no calls to OSV.dev.
View prompt
Using google/osv-scanner, run `osv-scanner --offline --download-offline-databases ./path/to/your/dir` on <my project> and report the vulnerabilities found.
Quick start with Osv Scanner
- Check you have what it needs: A prebuilt binary from the releases page, or Go to run go install; A project directory with lockfiles or manifests, or a container image; Network access to OSV.dev, unless you use offline mode.
- Open google/osv-scanner on GitHub and read the README and license.
- Download a prebuilt binary from the releases page, or build from source with
go install github.com/google/osv-scanner/v2/cmd/osv-scanner@latest - Run
osv-scanner scan source -r /path/to/your/dir - Read the vulnerabilities reported for files like package.json or go.mod
- Upgrade the affected dependencies and rescan
These steps come from our top use case, Scan a project for vulnerable dependencies, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for google/osv-scanner
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forDevelopers and security teams who want free dependency vulnerability scanning backed by the open OSV.dev database.
- Why it is hot11k stars, talked about in 2 AI sources we track
- LanguageGo
- Sourcegithub.com/google/osv-scanner ยท Back to Hot repos
Requirements
- A prebuilt binary from the releases page, or Go to run go install
- A project directory with lockfiles or manifests, or a container image
- Network access to OSV.dev, unless you use offline mode
Add this badge to your README
Maintain Osv Scanner? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/google-osv-scanner/?utm_source=github&utm_medium=badge&utm_campaign=google-osv-scanner)
HTML
<a href="https://dedupedai.com/use-cases/google-osv-scanner/?utm_source=github&utm_medium=badge&utm_campaign=google-osv-scanner"><img src="https://dedupedai.com/badge/google/osv-scanner.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Osv Scanner
What is Osv Scanner?
OSV-Scanner is Google's officially supported frontend to the OSV database. It finds known vulnerabilities in your project's dependencies across languages and package managers, scans container images layer by layer, checks licenses, can scan offline against a local database, and offers experimental guided remediation that suggests upgrades. It is an open-source project on GitHub: https://github.com/google/osv-scanner.
How do I use Osv Scanner?
Download a prebuilt binary from the releases page, or build from source with go install github.com/google/osv-scanner/v2/cmd/osv-scanner@latest; then run osv-scanner scan source -r /path/to/your/dir; read the vulnerabilities reported for files like package.json or go.mod. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Osv Scanner for?
Developers and security teams who want free dependency vulnerability scanning backed by the open OSV.dev database.
What can I do with Osv Scanner?
3 use cases so far, for example: Scan a project for vulnerable dependencies; Scan a container image and check licenses; Scan dependencies without a network connection. Each has steps and a copy-paste agent prompt.
What do I need to run Osv Scanner?
A prebuilt binary from the releases page, or Go to run go install; A project directory with lockfiles or manifests, or a container image; Network access to OSV.dev, unless you use offline mode.
What are alternatives to Osv Scanner?
Other hot AI repos in Security and science: Security Audit Skill, GPU Unlock, Syft, Esm, Alphafold3.
Is Osv Scanner safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.