CVE-2026-76220 is a command injection bypass in GitPython that defeats the library's primary security guard. The vulnerability lives in how GitPython translates Python keyword arguments into Git CLI options — specifically, the interaction between the check_unsafe_options protection and the split_single_char_options parameter combined with single-character kwargs creates a bypass that works without any action from the calling developer.
Here's what matters: GitPython ships with allow_unsafe_options=False by default, which should block dangerous Git options from being passed through. This protection was added in response to prior injection vulnerabilities. CVE-2026-76220 shows that this guard can be circumvented through normal library usage patterns — if your code uses single-character keyword arguments or enables split_single_char_options, the protection evaporates. The default that developers rely on for safety can be subverted through the exact API patterns the library encourages.
Check your codebase now: any call to GitPython functions that passes kwargs — particularly single-character parameters like -C for directory changes, or any use of split_single_char_options — could be vulnerable regardless of your security configuration. The vulnerability isn't about ignoring the defaults; it's about the defaults being compromised through interaction effects no developer would reasonably anticipate.
This should change your threat model if you use GitPython. The library's architecture requires you to understand Git's CLI parsing rules to write secure code, which defeats the purpose of using a high-level wrapper. Consider whether your use case can migrate to a library with a genuine security boundary, or at minimum audit every GitPython invocation for kwarg injection surfaces. The pattern here — reactive security patches that create new bypass vectors — has appeared in this library before and will appear again.