René's URL Explorer Experiment


Title: fix: prevent environment expansion in remote URLs by Byron · Pull Request #2181 · gitpython-developers/GitPython · GitHub

Open Graph Title: fix: prevent environment expansion in remote URLs by Byron · Pull Request #2181 · gitpython-developers/GitPython

X Title: fix: prevent environment expansion in remote URLs by Byron · Pull Request #2181 · gitpython-developers/GitPython

Description: Tasks This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here. refackiew Everything below this line was generated by Codex GPT-5. Created by Codex on behalf of Byron. Byron will review before this is ready to merge. Summary Preserve caller-supplied environment-variable references literally when creating remotes and submodules. This closes the remaining sibling URL paths missed by the earlier clone hardening while retaining existing local-path normalization behavior. Advisory summary Advisory: GHSA-94p4-4cq8-9g67 URL: GHSA-94p4-4cq8-9g67 Severity: High Package: GitPython (pip) Affected versions: <= 3.1.53 Patched versions: not yet assigned CVE: not yet assigned The advisory remains in triage, so reproduction and exploit details are intentionally omitted here. Validation Focused remote and submodule regression tests: 2 passed Changed-file pre-commit hooks: passed git diff --check: passed Full remote/submodule modules: 56 passed, 1 skipped; 14 fixture failures from unavailable nested test repositories and a historical master-branch fixture Codex commit review: no correctness findings

Open Graph Description: Tasks This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here. refackiew Everything below this line was generated by C...

X Description: Tasks This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here. refackiew Everything below this line was generated by C...

Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2181

X: @github

direct link

Domain: Github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e22937e0-a364-6c60-a5f1-f01282dfa646
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC7C4:235A9F:6BAA3:979B3:6A62F961
html-safe-noncee093964545e9b585e5f61c47e9b7a7d706679eb22e9fb5d6c29f89fe442f5ba3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0M0OjIzNUE5Rjo2QkFBMzo5NzlCMzo2QTYyRjk2MSIsInZpc2l0b3JfaWQiOiIyOTgzNTAyOTE1NDg1Njc5MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7cceaeb54c860b7646bf5f7bea6e8bfc9880882a733369949f503db46d64365f
hovercard-subject-tagpull_request:4108653253
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/2181/files
twitter:imagehttps://avatars.githubusercontent.com/u/63622?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/63622?s=400&v=4
og:image:altTasks This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here. refackiew Everything below this line was generated by C...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None59e40dc698184067b40ef2d941585f66ed42711564a879644f984f1eacea129c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb4f544bf80583e749557efd76afda56317b6252d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/gitpython-developers/GitPython/pull/2181/files#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2181%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2181%2Ffiles
Sign up https://Github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://Github.com/gitpython-developers/GitPython/pull/2181/files
Reloadhttps://Github.com/gitpython-developers/GitPython/pull/2181/files
Reloadhttps://Github.com/gitpython-developers/GitPython/pull/2181/files
Please reload this pagehttps://Github.com/gitpython-developers/GitPython/pull/2181/files
gitpython-developers https://Github.com/gitpython-developers
GitPythonhttps://Github.com/gitpython-developers/GitPython
Please reload this pagehttps://Github.com/gitpython-developers/GitPython/pull/2181/files
Notifications https://Github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 983 https://Github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5.2k https://Github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://Github.com/gitpython-developers/GitPython
Issues 15 https://Github.com/gitpython-developers/GitPython/issues
Pull requests 3 https://Github.com/gitpython-developers/GitPython/pulls
Discussions https://Github.com/gitpython-developers/GitPython/discussions
Actions https://Github.com/gitpython-developers/GitPython/actions
Security and quality 17 https://Github.com/gitpython-developers/GitPython/security
Insights https://Github.com/gitpython-developers/GitPython/pulse
Code https://Github.com/gitpython-developers/GitPython
Issues https://Github.com/gitpython-developers/GitPython/issues
Pull requests https://Github.com/gitpython-developers/GitPython/pulls
Discussions https://Github.com/gitpython-developers/GitPython/discussions
Actions https://Github.com/gitpython-developers/GitPython/actions
Security and quality https://Github.com/gitpython-developers/GitPython/security
Insights https://Github.com/gitpython-developers/GitPython/pulse
Sign up for GitHub https://Github.com/signup?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://Github.com/login?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose
Byronhttps://Github.com/Byron
mainhttps://Github.com/gitpython-developers/GitPython/tree/main
fix-env-var-exfiltrationhttps://Github.com/gitpython-developers/GitPython/tree/fix-env-var-exfiltration
Conversation 1 https://Github.com/gitpython-developers/GitPython/pull/2181
Commits 1 https://Github.com/gitpython-developers/GitPython/pull/2181/commits
Checks 30 https://Github.com/gitpython-developers/GitPython/pull/2181/checks
Files changed 4 https://Github.com/gitpython-developers/GitPython/pull/2181/files
fix: prevent environment expansion in remote URLs https://Github.com/gitpython-developers/GitPython/pull/2181/files#top
Show all changes 1 commit https://Github.com/gitpython-developers/GitPython/pull/2181/files
8634174 fix: prevent environment expansion in remote URLs codex Jul 22, 2026 https://Github.com/gitpython-developers/GitPython/pull/2181/commits/863417457a0633db7ea5aed4fd01e0b291a41162
Clear filters https://Github.com/gitpython-developers/GitPython/pull/2181/files
Please reload this pagehttps://Github.com/gitpython-developers/GitPython/pull/2181/files
Please reload this pagehttps://Github.com/gitpython-developers/GitPython/pull/2181/files
base.py https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-44dc32942e129beb7f738ff7d487bfbddb0a7802a91d43c9b8b8952a4d0806bc
remote.py https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-498082829601479324d7f95e72bd35bafafe74be1b0d8e1b7a42e181b08f3639
test_remote.py https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-8f71eea0871a97cc5c7757598e3ffaeacb8cd38f6f5f1742e21fd07364d3a698
test_submodule.py https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-78179a32c1d54a6b78b018ee57328d6ea9424fbfbdbb36caf15e290331621024
git/objects/submodule/base.pyhttps://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-44dc32942e129beb7f738ff7d487bfbddb0a7802a91d43c9b8b8952a4d0806bc
View file https://Github.com/gitpython-developers/GitPython/blob/863417457a0633db7ea5aed4fd01e0b291a41162/git/objects/submodule/base.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/gitpython-developers/GitPython/pull/2181/{{ revealButtonHref }}
https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-44dc32942e129beb7f738ff7d487bfbddb0a7802a91d43c9b8b8952a4d0806bc
https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-44dc32942e129beb7f738ff7d487bfbddb0a7802a91d43c9b8b8952a4d0806bc
git/remote.pyhttps://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-498082829601479324d7f95e72bd35bafafe74be1b0d8e1b7a42e181b08f3639
View file https://Github.com/gitpython-developers/GitPython/blob/863417457a0633db7ea5aed4fd01e0b291a41162/git/remote.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/gitpython-developers/GitPython/pull/2181/{{ revealButtonHref }}
https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-498082829601479324d7f95e72bd35bafafe74be1b0d8e1b7a42e181b08f3639
https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-498082829601479324d7f95e72bd35bafafe74be1b0d8e1b7a42e181b08f3639
test/test_remote.pyhttps://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-8f71eea0871a97cc5c7757598e3ffaeacb8cd38f6f5f1742e21fd07364d3a698
View file https://Github.com/gitpython-developers/GitPython/blob/863417457a0633db7ea5aed4fd01e0b291a41162/test/test_remote.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/gitpython-developers/GitPython/pull/2181/{{ revealButtonHref }}
https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-8f71eea0871a97cc5c7757598e3ffaeacb8cd38f6f5f1742e21fd07364d3a698
https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-8f71eea0871a97cc5c7757598e3ffaeacb8cd38f6f5f1742e21fd07364d3a698
https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-8f71eea0871a97cc5c7757598e3ffaeacb8cd38f6f5f1742e21fd07364d3a698
https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-8f71eea0871a97cc5c7757598e3ffaeacb8cd38f6f5f1742e21fd07364d3a698
test/test_submodule.pyhttps://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-78179a32c1d54a6b78b018ee57328d6ea9424fbfbdbb36caf15e290331621024
View file https://Github.com/gitpython-developers/GitPython/blob/863417457a0633db7ea5aed4fd01e0b291a41162/test/test_submodule.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/gitpython-developers/GitPython/pull/2181/{{ revealButtonHref }}
https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-78179a32c1d54a6b78b018ee57328d6ea9424fbfbdbb36caf15e290331621024
https://Github.com/gitpython-developers/GitPython/pull/2181/files#diff-78179a32c1d54a6b78b018ee57328d6ea9424fbfbdbb36caf15e290331621024
Please reload this pagehttps://Github.com/gitpython-developers/GitPython/pull/2181/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.