OWASP Dependency-Check: Setup, CI Integration & Report Guide
OWASP Dependency-Check is a free, open-source SCA (Software Composition Analysis) tool that identifies known vulnerabilities in project dependencies by cross-referencing NVD CVE data. This guide covers installation, Maven/Gradle setup, CI integration, and false positive management.
What is OWASP Dependency-Check?
OWASP Dependency-Check (DC) scans your project's libraries and compares them against the National Vulnerability Database (NVD) CVE feed. It supports Java JARs, .NET assemblies, npm packages, Python requirements files, and more. Because it stores the NVD data locally, it works in offline and air-gapped environments — a major advantage over cloud-based SaaS tools.
Installation
Three installation paths: standalone CLI, Maven plugin, or Gradle plugin.
# Option 1: Standalone CLI (download zip from GitHub releases)
unzip dependency-check-*.zip
./dependency-check/bin/dependency-check.sh --version
# Option 2: Maven plugin (add to pom.xml)
# <plugin>
# <groupId>org.owasp</groupId>
# <artifactId>dependency-check-maven</artifactId>
# <version>9.0.9</version>
# </plugin>
# Option 3: Homebrew (macOS/Linux)
brew install dependency-check Running a Scan
# CLI scan with NVD API key
./dependency-check.sh \
--project "MyApp" \
--scan ./target/ \
--format HTML \
--nvdApiKey YOUR_NVD_API_KEY \
--out ./reports/
# Maven: run as part of build
mvn dependency-check:check -DnvdApiKey=YOUR_KEY
# Maven: fail build on CVSS >= 7
mvn verify -DfailBuildOnCVSS=7 -DnvdApiKey=YOUR_KEY HTML Report Walkthrough
The HTML report (dependency-check-report.html) contains three sections: a summary table of all scanned dependencies with their CVE counts, a detailed findings section with CPE identifiers and CVSS scores, and a suppressed findings section. Focus on the Critical and High rows first. Each row links to the NVD entry for full CVE details and available patches.
CI/CD Integration — GitHub Actions
name: OWASP Dependency-Check
on: [push, pull_request]
jobs:
dependency-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run OWASP Dependency-Check
uses: dependency-check/Dependency-Check_Action@main
with:
project: 'MyApp'
path: '.'
format: 'HTML'
args: >
--failOnCVSS 7
--nvdApiKey {{ secrets.NVD_API_KEY }}
- name: Upload report
uses: actions/upload-artifact@v4
if: always()
with:
name: dependency-check-report
path: reports/ NVD API Key Setup
Register for a free API key at nvd.nist.gov/developers/request-an-api-key. After registration you receive an email with the key. Without it, NVD updates are throttled at 5 requests/30 sec — the first update can take over an hour. With the key: 50 requests/30 sec, typically under 5 minutes.
Store the key as a CI secret (NVD_API_KEY) and pass it via --nvdApiKey flag or Maven property. Never hardcode it in pom.xml.
Suppression File for False Positives
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
<suppress>
<notes>CVE affects a code path not reachable in our app</notes>
<cve>CVE-2023-12345</cve>
<gav regex="true">^com\.example:mylib:.*$</gav>
</suppress>
</suppressions> Pass via --suppression suppression.xml (CLI) or <suppressionFile> (Maven). Always include a <notes> element explaining why the suppression is valid — it serves as your compliance audit trail.
OWASP DC vs Snyk Comparison
| Aspect | OWASP DC | Snyk |
|---|---|---|
| Cost | Free / OSS | Free tier + paid |
| Database | NVD (local copy) | Snyk curated DB |
| Offline support | Yes | No |
| Fix PRs | No | Yes |
| Container scanning | No | Yes |
| False positive rate | Higher (needs tuning) | Lower |
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
JSON Formatter & Validator
Format, beautify, and validate JSON online. Paste your JSON to instantly pretty-print it with 2-space, 4-space, or tab indentation. Minify JSON too. Free, runs in your browser.
Open free tool →
Regex Tester
Free regex tester. Test regular expressions against multiple strings with expected match/no-match assertions — see instant pass/fail results. Built-in presets for email, URL, IPv4, and phone. Pro: unl
Open free tool →
Base64 Encoder & Decoder
Free Base64 Encoder & Decoder. Convert text, images, and any file to Base64 and back. Supports URL-safe Base64, image data URIs, and file download from Base64. Runs 100% in your browser — no data sent
Open free tool →
More Free Tools
Related Articles
curl 深度使用手冊:API 測試從入門到進階
curl 是每位開發者必備的 CLI 工具。本文涵蓋 GET/POST/PUT/DELETE 請求、認證、header 設定、檔案上傳、除錯技巧,以及 REST API 測試的完整實戰範例。
Best AI Code Review Tools 2026: CodeRabbit, Sourcery, DeepCode & Bito Compared
Compare top AI code review tools for 2026: CodeRabbit, Sourcery, DeepCode, and Bito. Features, pricing, GitHub/GitLab integration, and choosing the right tool for your team.
AI Code Review Tools 2026: GitHub Copilot, CodeRabbit, Qodo Merge Ranked
Compare AI code review tools for 2026: GitHub Copilot code review, CodeRabbit, Qodo Merge, Sourcery, and PR-Agent. Pricing, accuracy, and GitHub integration.
AI Coding Tools Comparison 2026: GitHub Copilot vs Cursor vs Windsurf vs Cline
Comprehensive comparison of the best AI coding tools in 2026: GitHub Copilot, Cursor, Windsurf, and Cline. Pricing, features, model support, and real-world benchmarks.
AI Pair Programming in 2026: GitHub Copilot vs Cursor vs Claude Code
Master AI pair programming in 2026. Compare GitHub Copilot, Cursor, and Claude Code for autocomplete, chat, and agentic workflows. Includes setup guides and productivity tips.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →