Skip to content

Allow oauthlib 4.x (fixes CVE-2026-49265 and CVE-2026-49264) #964

Description

@jcwhittier

oauthlib 4.0.0 was released on September 28, 2026 and fixes two advisories. Every published oauthlib 3.x release (through 3.3.1) is affected, and 4.0.0 is the first oauthlib release with the fixes:

databricks-sql-connector 4.6.0 (and main) requires oauthlib = "^3.1.0", i.e. >=3.1.0,<4.0.0, which prevents downstream consumers from resolving the fixes. Dependency scanners such as pip-audit flag every project that depends on the connector.

Both vulnerabilities are on the OAuth provider side, which the connector does not use, and 4.0.0 looks compatible with the connector's client-side usage:

  • src/databricks/sql/auth/oauth.py only uses WebApplicationClient (prepare_authorization_request, parse_request_uri_response, prepare_request_body, prepare_refresh_body) and OAuth2Error.
  • The 4.0.0 breaking changes are provider-side (RevocationEndpoint JSONP removal, grant-type validation order in the token grants) plus removal of the callback parameter from prepare_token_revocation_request, which the connector does not call.
  • oauthlib 4.0.0 requires Python >=3.9; the connector already requires ^3.10.

Requests:

  1. Widen the constraint to oauthlib = ">=3.1.0,<5.0.0" to allow 4.x.
  2. Publish a new release to PyPI so downstream consumers can resolve both advisories.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions