pnpm passes the `git resolution.commit` value from the lockfile to the git fetch command without using a -- separator or performing commit-format validation. When git dependencies are fetched via the shallow-fetch path, a malicious lockfile can replace the 40-character commit hash with a Git option, such as `--upload-pack=<command>`. For local transports and SSH, the `--upload-pack` option can execute the specified command. HTTPS transports are not affected as they ignore this option.