security: bump oauthlib, PyJWT, urllib3 to patched versions - #53
Merged
Merged
Conversation
Addresses 18 open Dependabot/dependency-graph alerts: - oauthlib >=4.0.0 (GHSA-hj66-6f7g-4r5v, GHSA-xpv3-w29h-x7cv) - urllib3 >=2.8.0 (GHSA-8988-9cw3-xx77, GHSA-vxq7-64xx-v4gw, GHSA-gh4c-6fx4-qh6g) - PyJWT >=2.15.0, newly pinned as a direct dependency since it is a transitive dependency of databricks-cli and was not previously constrained (GHSA-w6j9-cwv2-h6wq, GHSA-2gx3-rcp4-g85q, GHSA-r6x4-923q-g947, GHSA-p4g4-x82p-q773, GHSA-9v7f-9g4p-ffgj, GHSA-w2cx-738m-mc7w, GHSA-ffc3-869f-jxw9, GHSA-hxm8-2xgr-2p9m, GHSA-8wjv-2p76-3863, GHSA-9j54-fg26-wv3r, GHSA-jwrc-g2q2-pq5p, GHSA-42vr-xj54-vc7v, GHSA-gvp8-978c-rx2q) Verified with `poetry lock` that the new constraints resolve cleanly against databricks-cli 0.18.0 (requires urllib3<3,>=1.26.7, oauthlib>=3.1.0, pyjwt>=1.7.0), and ran the test suite locally.
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.
Summary
Resolves all 18 open Dependabot / dependency-graph security alerts in this repo by bumping three vulnerable dependencies to their patched versions in
pyproject.toml:oauthlib>=3.2.1>=4.0.0urllib3>=1.24.2>=2.8.0PyJWT>=2.15.0PyJWTwas previously only a transitive dependency (pulled in bydatabricks-cli) with no version floor, so it is now pinned directly as a first-class dependency, following the same pattern already used in this file foroauthlib/urllib3.Corresponding JIRA tickets: AIP-1184 through AIP-1201.
Verification
poetry lockresolves cleanly with the new constraints againstdatabricks-cli==0.18.0(which requiresurllib3<3,>=1.26.7,oauthlib>=3.1.0,pyjwt>=1.7.0— no conflicts).poetry installsucceeds; resolved versions:oauthlib==4.0.0,pyjwt==2.15.1,urllib3==2.8.0.poetry run pytestlocally: 6 passed, 2 skipped, 4 failed. The 4 failures (test_sampling.py::test_sampling_end2end,test_sql.py::test_sql,tutorial/test_sources_and_writers.py::*) are allpyspark.errors.exceptions.base.PySparkRuntimeError: JAVA_GATEWAY_EXITED— caused by no JVM being installed in my local scratch environment, unrelated to the oauthlib/PyJWT/urllib3 bump. GitHub Actions'ubuntu-latestrunner ships a JDK, so CI is expected to pass; will monitor CI and fix forward if something unexpected shows up.Test plan
poetry lock/poetry installresolve without conflictspytestrun (modulo missing local JVM)🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com