Skip to content

Update gitpython to 3.1.57 for security patches - #6396

Closed
katsugtgz wants to merge 1 commit into
StackStorm:masterfrom
katsugtgz:fix/gitpython-security-patch
Closed

Update gitpython to 3.1.57 for security patches#6396
katsugtgz wants to merge 1 commit into
StackStorm:masterfrom
katsugtgz:fix/gitpython-security-patch

Conversation

@katsugtgz

Copy link
Copy Markdown

Bumps gitpython from 3.1.45 to 3.1.57 (patch-level update).

Fixed vulnerabilities

All advisories below were confirmed via osv-scanner before/after the change:

Advisory Severity Summary
GHSA-x2qx-6953-8485 / PYSEC-2026-2161 9.8 Unsafe option check validates multi_options before shlex.split
GHSA-rpm5-65cw-6hj4 / PYSEC-2026-2160 8.8 Command injection via Git options bypass
GHSA-2f96-g7mh-g2hx 8.8 Command injection via long-option prefix abbreviation bypass
GHSA-r9mr-m37c-5fr3 8.8 Unsafe git option guard bypass via single-char token smuggling
GHSA-956x-8gvw-wg5v 8.4 Command injection via unguarded options in Repo.archive()
GHSA-3f7w-8rr8-f37f 8.1 Unguarded git option forwarding in IndexFile.checkout()
GHSA-fjr4-x663-mwxc 8.1 Arbitrary file overwrite via git diff --output injection
PYSEC-2026-2163 / GHSA-v87r-6q3f-2j67 7.8 Newline injection in config_writer enables RCE
PYSEC-2026-2162 / GHSA-7545-fcxq-7j24 7.8 Path traversal in reference APIs
GHSA-6p8h-3wgx-97gf 7.5 Incomplete unsafe_git_clone_options denylist omits --template
GHSA-94p4-4cq8-9g67 7.5 Environment-variable exfiltration via Repo.create_remote()
GHSA-rwj8-pgh3-r573 7.5 Environment-variable exfiltration via os.path.expandvars
GHSA-3rp5-jjmw-4wv2 7.0 git-config section-name injection enables arbitrary config
GHSA-mv93-w799-cj2w 7.0 Newline injection in config_writer section parameter
GHSA-539m-9xh6-q6rr 6.5 Incomplete unsafe_git_archive_options denylist
GHSA-p538-c434-8v24 5.4 Arbitrary file truncation via git rev-list --output injection

Verification

  • osv-scanner before: 16 gitpython advisories detected at 3.1.45
  • osv-scanner after: 0 gitpython advisories at 3.1.57
  • Diff: only requirements.txt, single version bump
  • No application logic or source code changes

Bumps gitpython from 3.1.45 to 3.1.57.

Fixed vulnerabilities:
- GHSA-rpm5-65cw-6hj4 / PYSEC-2026-2160 / CVE-2026-42215: Command injection via Git options bypass (CVSS 8.8)
- GHSA-x2qx-6953-8485: Unsafe option check validates multi_options before shlex.split (CVSS 9.8)
- GHSA-v87r-6q3f-2j67 / PYSEC-2026-2163: Newline injection in config_writer enables RCE (CVSS 7.8)
- GHSA-7545-fcxq-7j24 / PYSEC-2026-2162: Path traversal in reference APIs (CVSS 7.8)
- GHSA-2f96-g7mh-g2hx: Command injection via long-option prefix abbreviation bypass (CVSS 8.8)
- GHSA-3f7w-8rr8-f37f: Unguarded git option forwarding in IndexFile.checkout() (CVSS 8.1)
- GHSA-3rp5-jjmw-4wv2: git-config section-name injection enables arbitrary config (CVSS 7.0)
- GHSA-539m-9xh6-q6rr: Incomplete unsafe_git_archive_options denylist (CVSS 6.5)
- GHSA-6p8h-3wgx-97gf: Incomplete unsafe_git_clone_options denylist omits --template (CVSS 7.5)
- GHSA-94p4-4cq8-9g67: Environment-variable exfiltration via Repo.create_remote() (CVSS 7.5)
- GHSA-956x-8gvw-wg5v: Command injection via unguarded options in Repo.archive() (CVSS 8.4)
- GHSA-fjr4-x663-mwxc: Arbitrary file overwrite via git diff --output injection (CVSS 8.1)
- GHSA-mv93-w799-cj2w: Newline injection in config_writer section parameter (CVSS 7.0)
- GHSA-p538-c434-8v24: Arbitrary file truncation via git rev-list --output injection (CVSS 5.4)
- GHSA-r9mr-m37c-5fr3: Unsafe git option guard bypass via single-char token smuggling (CVSS 8.8)
- GHSA-rwj8-pgh3-r573: Environment-variable exfiltration via os.path.expandvars (CVSS 7.5)

Verified with osv-scanner: all 16 gitpython advisories cleared after update.
Only gitpython version changed; no other dependency modifications.
@pull-request-size pull-request-size Bot added the size/XS PR that changes 0-9 lines. Quick fix/merge. label Aug 5, 2026
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Security Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Security Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@katsugtgz

Copy link
Copy Markdown
Author

Closing in favor of #6397 which bumps directly to 3.1.58 (latest release). This PR used an incorrect commit author that caused CLA to fail.

@katsugtgz katsugtgz closed this Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS PR that changes 0-9 lines. Quick fix/merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants