Title: Should GHSA-whh4-5q6c-9v3x cover releases before 3.1.59? · Issue #2330 · gitpython-developers/GitPython · GitHub
Open Graph Title: Should GHSA-whh4-5q6c-9v3x cover releases before 3.1.59? · Issue #2330 · gitpython-developers/GitPython
X Title: Should GHSA-whh4-5q6c-9v3x cover releases before 3.1.59? · Issue #2330 · gitpython-developers/GitPython
Description: GHSA-whh4-5q6c-9v3x (CVE-2026-87818) lists GitPython 3.1.59 as the only affected release, but the same --no-index/-I oracle also works on older releases. We tested 3.1.30, 3.1.40, 3.1.53, 3.1.58 and 3.1.59, and 3.1.60 (#2217) is the firs...
Open Graph Description: GHSA-whh4-5q6c-9v3x (CVE-2026-87818) lists GitPython 3.1.59 as the only affected release, but the same --no-index/-I oracle also works on older releases. We tested 3.1.30, 3.1.40, 3.1.53, 3.1.58 an...
X Description: GHSA-whh4-5q6c-9v3x (CVE-2026-87818) lists GitPython 3.1.59 as the only affected release, but the same --no-index/-I oracle also works on older releases. We tested 3.1.30, 3.1.40, 3.1.53, 3.1.58 an...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/2330
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should GHSA-whh4-5q6c-9v3x cover releases before 3.1.59?","articleBody":"GHSA-whh4-5q6c-9v3x (`CVE-2026-87818`) lists GitPython 3.1.59 as the only affected release, but the same `--no-index`/`-I` oracle also works on older releases. We tested 3.1.30, 3.1.40, 3.1.53, 3.1.58 and 3.1.59, and 3.1.60 (#2217) is the first release that blocks it.\n\nOn each of those releases, with the default `allow_unsafe_options=False` and both paths outside the repository, `repo.index.diff(None, no_index=True, I=pattern, paths=[empty_file, secret_file], create_patch=True)` returns an empty `DiffIndex` when the pattern matches and raises `GitCommandError` with status 1 when it doesn't. Repeating the call recovered a random 6-character token one character at a time. 3.1.60 raises `UnsafeOptionError`. Tested with git 2.56.0 and Python 3.15.2.\n\nThis matches the code: before 3.1.59, `diff()` either ran no unsafe-option check (3.1.53 and earlier) or blocked only `--output` and `-o` (3.1.54 to 3.1.58), so nothing stopped `--no-index`. Those releases also accept `-O`/`--orderfile`, which #2208 closed in 3.1.59 without an advisory of its own. As far as we can find, no published advisory covers reading local files through `diff()` before 3.1.59.\n\nWas the advisory scoped to the 3.1.59 bypass on purpose? If not, would you widen it to `\u003c 3.1.60`, or would you rather cover the older read path in a separate advisory?\n\nWe found this while reviewing Homebrew's advisory data.","author":{"url":"https://github.com/p-linnane","@type":"Person","name":"p-linnane"},"datePublished":"2026-10-31T06:20:15Z","url":"https://github.com/gitpython-developers/GitPython/issues/2330"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a8939a9c-b31d-4df3-02e5-5cb38ce49c5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83D8:16A125:5C28A7:7B5F38:6B00A854 |
| html-safe-nonce | 676c04214ebe3d6598f8d715947e79258d7db27833a4839ff1a0b02bd90f0ab9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0Q4OjE2QTEyNTo1QzI4QTc6N0I1RjM4OjZCMDBBODU0IiwidmlzaXRvcl9pZCI6IjIwMTI0MjY5MTI4MTg4MzM0OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ae8c3c622671f950692a05328df21d47e2e365f779995157abf293317cab8c0c |
| hovercard-subject-tag | issue:6131917389 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/2330/issue_layout |
| twitter:image | https://opengraph.githubassets.com/46199d6000213bfc3ccde7465f55f92080f25d0b086603767329e208a97578e1/gitpython-developers/GitPython/issues/2330 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/46199d6000213bfc3ccde7465f55f92080f25d0b086603767329e208a97578e1/gitpython-developers/GitPython/issues/2330 |
| og:image:alt | GHSA-whh4-5q6c-9v3x (CVE-2026-87818) lists GitPython 3.1.59 as the only affected release, but the same --no-index/-I oracle also works on older releases. We tested 3.1.30, 3.1.40, 3.1.53, 3.1.58 an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | p-linnane |
| hostname | github.com |
| expected-hostname | github.com |
| None | 455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f575159976167242d488c0b062eb355c4e198b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width