@nx/maven@23.1.0-rc.3

Nx plugin for Maven integration

  • latest version

    24.0.6

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @nx/maven package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Command Injection

    @nx/maven is a Nx plugin for Maven integration

    Affected versions of this package are vulnerable to Command Injection via maven-analyzer.ts and related spawn utilities in @nx/maven and @nx/gradle, which invoke child processes with shell: true and interpolate values read from nx.json directly into the command line. An attacker who controls nx.json (for example, by contributing to a repository) can inject arbitrary shell commands into plugin option values such as targetNamePrefix, causing those commands to execute whenever any nx command triggers project graph construction. In the Gradle case, the open index signature of GradlePluginOptions also makes option keys injectable, broadening the attack surface.

    How to fix Command Injection?

    Upgrade @nx/maven to version 22.7.9, 23.1.2 or higher.

    >=22.0.2 <22.7.9>=23.0.0 <23.1.2