Repository navigation
security(deps): 🛡️ pin urllib3>=2.7.0 - #43
Merged
Merged
Conversation
Snyk (via the GitHub integration) resolves the transitive urllib3 from requests==2.32.4 to 2.0.7 and reports 4 HIGH findings; the highest fix version is 2.7.0. Pin it in requirements.txt, as zipp already is. urllib3 >= 2.7 requires Python >= 3.10. The published package metadata (requests >= 2.22.0) is unchanged, so this affects the repo's dev/scan dependencies only; consumers on 3.10+ already resolve current urllib3. Tested live against a dev tenant: pytest 5/5 on Python 3.11 and 3.13 (urllib3 2.8.0), same as main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pacificcode
had a problem deploying
to
testing
September 24, 2026 18:42 — with
GitHub Actions
Failure
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pacificcode
had a problem deploying
to
testing
September 24, 2026 18:44 — with
GitHub Actions
Failure
typettitt
approved these changes
Sep 25, 2026
jonbos
approved these changes
Sep 25, 2026
pacificcode
added a commit
that referenced
this pull request
Sep 30, 2026
Snyk's scan of `main` reports **0 C / 4 H / 10 M**, but against versions this repo doesn't use: | Snyk reports | `requirements.txt` pins | |---|---| | `urllib3@2.0.7` (4 H / 2 M) | `urllib3>=2.7.0` (#43) | | `requests@2.31.0` (3 M) | `requests==2.33.0` | | `zipp@3.15.0` (1 M) | `zipp==3.19.2` | Those are the last releases that support **Python 3.7**, and Snyk's SCM import **tests pip projects with Python 3.7 by default** ([docs](https://docs.snyk.io/supported-languages/supported-languages-list/python/scm-integrations-and-python)). It can't install our pins on 3.7, so it reports older versions we don't use. That's why the urllib3 findings stayed "open" after #43. ## Change - `.snyk` (next to `requirements.txt`, where Snyk looks for it): `language-settings: python: '3.11'`, the top of the CI matrix. `requirements.txt` already needs 3.10+ (urllib3 2.7). - changie entry. This only changes how **Snyk resolves `requirements.txt`**. It doesn't change `requires-python` or the published package (dropping 3.7–3.9 support is a separate question). ## Verification After merge, re-test the Snyk project `DelineaXPM/python-dsv-sdk(main):requirements.txt` (devops-secrets-vault); expect urllib3/requests/zipp to resolve to the pinned versions and the 4 H to clear. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the one ArmorCode/Snyk ticket on this repo (761394,
urllib3, 4 HIGH findings; the highest fix version is 2.7.0).Change
requirements.txt: addurllib3>=2.7.0. It isn't a direct dependency (it comes in viarequests==2.32.4), but Snyk's GitHub integration resolves the unpinned transitive dependency to 2.0.7. This pins it the same wayzippalready is.Scope, deliberately minimal
requires = ["requests >= 2.22.0"]), so this is the repo's dev/scan dependency file only. Consumers on 3.10+ already resolve current urllib3 throughrequests. No PyPI release is needed for the fix.requires-python, classifiers, tox, CI matrix) and releasing is a customer-facing support decision, so I've left it out of this PR.Testing
pytestsuite (5 tests: token URL, get secret, nonexistent secret, path normalisation, access-token authorizer):mainon Python 3.11: 5/5The
testworkflow can't run on any PR right now. Its matrix includes Python 3.7, which isn't available on GitHub's Ubuntu 24.04 runners, so the 3.7 job fails immediately and fail-fast cancels 3.8–3.11. It's pre-existing (every recent Renovate PR shows it) and unrelated to this change.🤖 Generated with Claude Code