@cyclonedx/cdxgen is vulnerable to OS command execution
88
High Risk
In server mode, cdxgen can clone a remote repository path passed in the request. Before the change, the internal gitClone helper could allow Git to run standard clone-time hook or template materialization behavior that runs host-side scripts while cloning an attacker-influenced repository, which in that server context can lead to arbitrary code execution. The fix supplies Git with -c core.hooksPath=/dev/null and an empty --template=, always sets GIT_TERMINAL_PROMPT=0 for the child process, and in secure server mode also points GIT_CONFIG_GLOBAL to /dev/null so the clone runs without pulling in the prior global config handling path.
You are affected if you are using a version that falls within the vulnerable range.
@cyclonedx/cdxgen is vulnerable to OS command execution in versions 11.4.2 - 12.2.0.
Upgrade the @cyclonedx/cdxgen library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant