@cyclonedx/cyclonedx-npm@4.2.0

Create CycloneDX Software Bill of Materials (SBOM) from NPM projects.

  • latest version

    6.0.1

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    6 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @cyclonedx/cyclonedx-npm 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

    @cyclonedx/cyclonedx-npm is a Create CycloneDX Software Bill of Materials (SBOM) from NPM projects.

    Affected versions of this package are vulnerable to Command Injection via the --workspace argument when the environment variable npm_execpath is unset or empty. An attacker can execute arbitrary operating system commands by supplying specially crafted input to the CLI. This is only exploitable if the tool is invoked with the --workspace option and the environment variable npm_execpath is unset or empty.

    How to fix Command Injection?

    Upgrade @cyclonedx/cyclonedx-npm to version 5.0.0 or higher.

    >=2.1.0 <5.0.0