Skip to content

Secure Maven pom.xml transitive dependency scanning #1877

@cuixq

Description

@cuixq

To prevent the plugin from being exploited by malicious <repository> entries in pom.xml files, also to align with Maven's security practices:

  • Reject any repository URL that does not use https://, which aligns with Maven 3.8.1+ security policy.
  • Add support for parsing settings.xml to honor mirror configurations. If <mirrorOf/> is defined, the client must bypass all repository URLs declared in the pom.xml and route requests exclusively through the specified trusted mirror. This is related to Make sure Maven settings.xml are read correctly #409.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions