Skip to content

Use overrides defined in <plugin><dependencies> - #8797

Open
bjansen wants to merge 1 commit into
dependency-check:mainfrom
bjansen:bugfix/8570-override-plugin-dependencies
Open

bjansen wants to merge 1 commit into
dependency-check:mainfrom
bjansen:bugfix/8570-override-plugin-dependencies

Conversation

@bjansen

@bjansen bjansen commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Description of Change

This is a fix for #8570. When scanPlugins is enabled and a maven plugin pulls a vulnerable dependency, it is possible to override the dependency like this:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-clean-plugin</artifactId>
    <version>3.5.0</version>
    <dependencies>
        <dependency>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-utils</artifactId>
            <version>4.0.3</version>
        </dependency>
    </dependencies>
</plugin>

This change makes dependency-check take these overrides into account when looking for vulnerable dependencies.

Related issues

Fixes #8570

Have test cases been added to cover the new functionality?

yes

@boring-cyborg boring-cyborg Bot added maven changes to the maven plugin tests test cases labels Sep 15, 2026
@bjansen bjansen changed the title Use overrides deined in <plugin><dependencies> Use overrides defined in <plugin><dependencies> Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maven changes to the maven plugin tests test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin dependencies overrides are ignored and may lead to FPs

1 participant