{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "google-osv-scanner--scan-a-project-for-vulnerable-dependencies-with-osv-scanner",
 "repo": "google/osv-scanner",
 "repo_url": "https://github.com/google/osv-scanner",
 "repo_slug": "google-osv-scanner",
 "title": "Scan a project for vulnerable dependencies",
 "page_title": "How to scan a project for vulnerable dependencies with Osv Scanner",
 "summary": "Recursively scan a source directory and list known vulnerabilities in its dependencies.",
 "who": "A developer who wants a fast check of a repo's lockfiles before a release.",
 "problem": "Dependencies pick up known vulnerabilities after you ship.",
 "outcome": "A list of vulnerabilities found in the supported package files.",
 "steps": [
  "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"
 ],
 "agent_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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "These are the V2 instructions; V1 has its own README.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "go",
 "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "data",
   "notice": "Package names, versions and ecosystems are sent to the OSV.dev API unless you use offline mode."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/google-osv-scanner/scan-a-project-for-vulnerable-dependencies-with-osv-scanner/",
 "md": "https://dedupedai.com/use-cases/google-osv-scanner/scan-a-project-for-vulnerable-dependencies-with-osv-scanner/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/google-osv-scanner--scan-a-project-for-vulnerable-dependencies-with-osv-scanner.json",
 "api_version": "v1"
}
