Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

DependencyCheck

> DevOps
Open source

OWASP dependency-check is a software composition analysis utility that detects publicly disclosed vulnerabilities in application dependencies.

7.6K stars0 likes1 views
WebsiteGitHub

About

OWASP dependency-check is a software composition analysis utility that detects publicly disclosed vulnerabilities in application dependencies.

Dependency-Check

Dependency-Check is a Software Composition Analysis (SCA) tool that attempts to detect publicly disclosed vulnerabilities contained within a project's dependencies. It does this by determining if there is a Common Platform Enumeration (CPE) identifier for a given dependency. If found, it will generate a report linking to the associated CVE entries.

Documentation and links to production binary releases can be found on the github pages. Additionally, more information about the architecture and ways to extend dependency-check can be found on the [wiki].

Notice

This product uses the NVD API but is not endorsed or certified by the NVD.

Mandatory Upgrade to 12.1.0+

Due to NVD API compatibility changes, an upgrade is mandatory. See #7463 for more information.

Breaking Changes in 11.0.0

  • Java 11 is now required to run dependency-check 11.0.0 or higher

  • H2 database upgrade

    11.0.0 contains breaking changes using the local H2 database. A full download of the NVD data will occur. Note that if you are using a shared data directory the h2 database file is not compatible with older versions of dependency-check. If you run into problems you may need to run a purge:

    • gradle: ./gradlew dependencyCheckPurge
    • maven: mvn org.owasp:dependency-check-maven:11.0.0:purge
    • cli: dependency-check.sh --purge

Other notices

NVD API Key Highly Recommended

Dependency-check moved from using the NVD data-feed to the NVD API since 9.0.0+ (January 2024). Users of dependency-check are highly encouraged to obtain an NVD API Key; see https://nvd.nist.gov/developers/request-an-api-key Without an NVD API Key dependency-check's updates will be extremely slow. Please see the documentation for the cli, maven, gradle, or ant integrations on how to set the NVD API key.

The NVD API Key, CI, and Rate Limiting

The NVD API has enforced rate limits. If you are using a single API KEY and multiple builds occur you could hit the rate limit and receive 403 errors. In a CI environment one must use a caching strategy.

Sonatype OSS Index mandatory authentication and migration to Sonatype Guide

In September 2025 Sonatype OSS Index started enforcing use of API tokens for authentication. In April 2026 a subsequent migration to Sonatype Guide began, kicking off a transition to use of Sonatype Guide API Tokens that are planned to replace the legacy OSS Index API keys/tokens before the end of 2026.

Without credentials, Dependency Check will automatically disable the OSS Index analyzer. Please see the documentation for the CLI, Maven, Gradle, or Ant integrations on how to set the analyzer credentials for use of a Sonatype Guide token or legacy OSS Index API key.

If you wish to use Sonatype OSS Index (via Guide) you must configure Dependency-Check and consider implications for the migration to Sonatype Guide; whose commercial/usage model has changed. See the analyzer documentation for more information.

Gradle build Environment

With 9.0.0+ users may encounter issues with NoSuchMethodError exceptions due to dependency resolution. If you encounter this issue you will need to pin some of the transitive dependencies of dependency-check to specific versions. For example:

/buildSrc/build.gradle

groovy
dependencies {
    constraints {
        // org.owasp.dependencycheck needs at least this version of jackson. Other plugins pull in older versions..
        add("implementation", "com.fasterxml.jackson:jackson-bom:2.21.2")

        // org.owasp.dependencycheck needs these versions. Other plugins pull in older versions..
        add("implementation", "org.apache.commons:commons-lang3:3.20.0")
        add("implementation", "org.apache.commons:commons-text:1.15.0")
    }
}

Requirements

Java Version

Minimum Java Version: Java 11

Internet Access

OWASP dependency-check requires access to several externally hosted resources. For more information see Internet Access Required.

Build Tools

In order to analyze some technology stacks dependency-check may require other development tools to be installed. Some of the analysis listed below may be experimental and require the experimental analyzers to be enabled.

  1. To analyze .NET Assemblies the dotnet 8 run time or SDK must be installed.
    • Assemblies targeting other run times can be analyzed - but 8 is required to run the analysis.
  2. If analyzing GoLang projects go must be installed.
  3. The analysis of Elixir projects requires mix_audit.
  4. The analysis of npm, pnpm, and yarn projects requires npm, pnpm, or yarn to be installed.
    • The analysis performed utilize the respective audit feature of each.
  5. The analysis of Ruby is a wrapper around bundle-audit, which must be installed.

Current Releases

Jenkins Plugin

For instructions on the use of the Jenkins plugin please see the OWASP Dependency-Check Plugin page.

Command Line

More detailed instructions can be found on the dependency-check github pages. The latest CLI can be downloaded from github in the releases section.

Downloading the latest release:

$ VERSION=$(curl -s https://dependency-check.github.io/DependencyCheck/current.txt)
$ curl -Ls "https://github.com/dependency-check/DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip" --output dependency-check.zip

On *nix

$ ./bin/dependency-check.sh -h
$ ./bin/dependency-check.sh --out . --scan [path to jar files to be scanned]

On Windows

> .\bin\dependency-check.bat -h
> .\bin\dependency-check.bat --out . --scan [path to jar files to be scanned]

On Mac with Homebrew Note - homebrew users upgrading from 5.x to 6.0.0 will need to run dependency-check.sh --purge.

$ brew update && brew install dependency-check
$ dependency-check -h
$ dependency-check --out . --scan [path to jar files to be scanned]

Maven Plugin

More detailed instructions can be found on the dependency-check-maven github pages. By default, the plugin is tied to the verify phase (i.e. mvn verify). Alternatively, one can directly invoke the plugin via mvn org.owasp:dependency-check-maven:check.

The dependency-check plugin can be configured using the following:

xml
<project>
    <build>
        <plugins>
            ...
            <plugin>
              <groupId>org.owasp</groupId>
              <artifactId>dependency-check-maven</artifactId>
              <executions>
                  <execution>
                      <goals>
                          <goal>check</goal>
                      </goals>
                  </execution>
              </executions>
            </plugin>
            ...
        </plugins>
        ...
    </build>
    ...
</project>

Gradle Plugin

For instructions on the use of the Gradle Plugin, please see the dependency-check-gradle github page.

Ant Task

For instructions on the use of the Ant Task, please see the dependency-check-ant github page.

Development Prerequisites

For installation to pass, you must have the following components installed:

  • Java: java -version 25.0
  • Maven: mvn -version 3.6.3 and higher

Tests cases require:

  • dotnet core version 8.0
  • Go: go version 1.12 and higher
  • Ruby bundler-audit
  • Yarn
  • pnpm

Development Usage

The following instructions outline how to compile and use the current snapshot. While every intention is to maintain a stable snapshot it is recommended that the release versions listed above be used.

The repository has some large files due to test resources. The team has tried to clean up the history as much as possible. However, it is recommended that you perform a shallow clone to save yourself time:

bash
git clone --depth 1 https://github.com/dependency-check/DependencyCheck.git

On *nix

$ mvn -s settings.xml install
$ ./cli/target/release/bin/dependency-check.sh -h
$ ./cli/target/release/bin/dependency-check.sh --out . --scan ./src/test/resources

On Windows

> mvn -s settings.xml install
> .\cli\target\release\bin\dependency-check.bat -h
> .\cli\target\release\bin\dependency-check.bat --out . --scan ./src/test/resources

Then load the resulting 'dependency-check-report.html' into your favorite browser.

Building without running tests

To speed up your turnaround cycle times, you can also compile without running the tests each time:
mvn -s settings.xml install -DskipTests=true

Please remember to at least run the tests once before opening the PR. :)

IntelliJ Idea

To be able to debug your tests in IntelliJ Idea, you can introduce a maven configuration that executes your test and enables debugging with breakpoints etc.
Basically, you do what´s described in https://www.jetbrains.com/help/idea/work-with-tests-in-maven.html#run_single_test and set the forkCount to 0, otherwise debugging won´t work.

Step by step:

  • Run -> Edit Configurations
  • + (Add new configuration) -> Maven
  • Give the Configuration a name, e.g. Run tests
  • Choose working directory, e.g. core
  • In command line, enter -DforkCount=0 -f pom.xml -s ../settings.xml test
  • Press OK
  • Run -> Debug, then choose the newly created run configuration

IntelliJ will now execute the test run for the core subproject with enabled debugging. Breakpoints set anywhere in code should work.

Only test one function or one class

If you would like to speed up your turnaround cycle times, you can also just test one function or one test class.
This works by adding -Dtest=MyTestClass or -Dtest=MyTestClass#myTestFunction to the run configuration. The complete command line in the run configuration then would be:

-Dtest=MyTestClass#myTestFunction -DforkCount=0 -f pom.xml -s ../settings.xml test

Docker

In the following example it is assumed that the source to be checked is in the current working directory and the reports will be written to $(pwd)/odc-reports. Persistent data and cache directories are used, allowing you to destroy the container after running.

For Linux:

…

For Windows:

…

Building From Source

To build dependency-check (using Java 11) run the command:

mvn -s settings.xml install

Running dependency-check on dependency-check

Dependency-check references several vulnerable dependencies that are never used except as test resources. All of these optional test dependencies are included in the test-dependencies profile. To run dependency-check against itself simple exclude the test-dependencies profile:

bash
mvn org.owasp:dependency-check-maven:aggregate -P-test-dependencies -DskipProvidedScope=true

Building the documen

Issues· 193 open

View all issuesOpen on GitHub
  • #7139

    fix: use CPE target_sw to populate ecosystem to reduce FP

    enhancementnvdUpdated Sep 29, 2026
  • #8622

    ODC does not shut down connection pools/threads cleanly after some types of failures

    bugcoreUpdated Sep 28, 2026
  • #7608

    Include Support for EUVD (European Union Vulnerability Database)

    enhancementUpdated Sep 9, 2026
  • #8737

    Clarification on CVE Reporting Changes in OWASP Dependency-Check

    questionmavencentralUpdated Aug 24, 2026
  • #8763

    OSSIndexAnalyzer cannot parse some CVSS vector strings

    ossindexUpdated Aug 22, 2026
  • #8757

    CENTRAL - NODEAUDIT - POM Cached results never expire

    bugUpdated Aug 21, 2026
  • #8422

    Remove legacy NodeAuditAnalyzer dependency on NPM audit legacy /quick API

    npmUpdated Aug 21, 2026
  • #8755

    Maven: test dependencies sometimes missing when executing with "-T1C"

    bugpending more informationmavenUpdated Aug 20, 2026
  • #5658

    dependency-check report shows in column 'Highest severity' MEDIUM while CVSSv2 has value 8.5 (CVSSv3 has value 6.6)

    bugUpdated Aug 9, 2026
  • #8469

    When the NVD service fails, the retries have no backoff

    enhancementnvdUpdated Jun 26, 2026

> Tags

Javaant-taskbuild-toolgradle-pluginjenkins-plugin

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理