The vulnerability is a command injection bypass in the simple-git library. The root cause is an inadequate regular expression in the preventUploadPack function located in simple-git/src/lib/plugins/block-unsafe-operations-plugin.ts. This function is intended to block unsafe git options, such as --upload-pack or its shorthand -u, which can be used to execute arbitrary commands. The vulnerable version of the code used the regex /^\\s*-u\\b/ to detect the -u option for the clone command. This check is easily bypassed because git allows for the combination of single-letter options. For example, an attacker could pass '-vu' where v stands for verbose and u for upload-pack. The regex would fail to match, allowing the unsafe option to be passed to the underlying git executable, resulting in remote command execution. The fixing commit 1effd8e5012a5da05a9776512fac3e39b11f2d2d replaces this flawed regex with a more robust check (isCloneSwitch('u', arg)) that correctly identifies the presence of the u character within a block of clone options, thus mitigating the vulnerability.