Skip to content

fix(deps): upgrade oauthlib to fix GHSA-3jp2-3mrg-2vxc #3705

Description

@dan-petty

Problem

The audit check of devops ci fails on each pull request that runs after 2026-11-05 21:01 UTC. uv audit reports GHSA-3jp2-3mrg-2vxc (CVE-2026-49272) for oauthlib 4.0.0. The GitHub advisory database published this advisory again at 21:01 UTC. uv.lock holds oauthlib 4.0.0 as a transitive dependency: kubernetes needs requests-oauthlib, and that package needs oauthlib.

The OSV query for oauthlib 4.0.0 returns this advisory, and the query for 4.0.1 returns none. PyPI has oauthlib 4.0.1 since 2026-10-31. First seen on the Static Analysis job of pull request #3704, which does not change uv.lock.

Expected

uv audit --frozen finds no vulnerability, so audit passes.

Acceptance criteria

  • uv.lock holds oauthlib 4.0.1 or newer. No other package moves, unless the lock needs it.
  • uv audit --frozen finds no known vulnerability.
  • No --ignore option is added to the audit: the fix does not lower the check.

Existing tool considered

uv lock --upgrade-package oauthlib. Nothing is built.

Related

Proposed design

Problem statement

The audit check fails on every pull request because uv.lock holds oauthlib 4.0.0. GHSA-3jp2-3mrg-2vxc names that version. oauthlib reaches the project as a transitive dependency: kubernetes needs requests-oauthlib, and that package needs oauthlib. The change raises the locked version to 4.0.1 with uv lock --upgrade-package oauthlib. The audit keeps its current strictness.

Acceptance criteria

Requirement: Locked oauthlib version

uv.lock SHALL hold oauthlib 4.0.1 or newer.

Scenario: The lock names the fixed version

  • WHEN the oauthlib entry of uv.lock is read after the change
  • THEN its version field is 4.0.1 or newer

Requirement: Minimal lock movement

The change MUST NOT move another package version unless the new oauthlib requires it.

Scenario: Only oauthlib moves

  • WHEN the uv.lock diff against the base revision is read
  • THEN the only changed version field is oauthlib, plus any package that oauthlib 4.0.1 requires

Requirement: Audit passes on the frozen lock

uv audit --frozen SHALL report no known vulnerability.

Scenario: The audit runs on the changed lock

  • WHEN uv audit --frozen runs on the changed lock
  • THEN the command exits with status 0 and reports no vulnerability

Requirement: Audit keeps its strictness

The audit invocation MUST NOT gain an --ignore entry or another suppression for GHSA-3jp2-3mrg-2vxc.

Scenario: No suppression names the advisory

Existing Tool Considered

No alternatives check has run on this issue. The open, maintained tool that covers the need is uv, through uv lock --upgrade-package oauthlib, and the project already uses it. The change builds no code, so its build cost is zero tokens and zero elapsed time.

Key questions

  • Which oauthlib version does uv.lock hold now, and which version clears the advisory?: uv.lock holds oauthlib 4.0.0. GHSA-3jp2-3mrg-2vxc covers 4.0.0. PyPI publishes 4.0.1, and the OSV query for 4.0.1 returns no advisory. [sources: uv.lock]
  • How does the project raise one transitive dependency without moving the rest of the lock?: uv lock --upgrade-package oauthlib re-resolves that package and its dependents only. uv documents the option in its CLI reference. [sources: uv.lock]
  • Does the audit read the lockfile as it is, so a lock bump alone clears the finding?: Yes. The uv audit adapter audits the lockfile as it is, and the check runs uv audit --frozen, so the locked version is the only input. [sources: openspec/specs/scanner-adapters/spec.md, uv.lock]
  • Which command raises the locked version: a targeted upgrade, a full upgrade, or a direct constraint?: Run uv lock --upgrade-package oauthlib. (best practice) [sources: uv.lock]
    • Chosen: uv lock --upgrade-package oauthlib. It moves only oauthlib, which the acceptance criteria require, and it keeps the rest of the lock identical.
    • Rejected: uv lock --upgrade. It moves many packages, so the change is no longer a dependency fix and the review grows.
    • Rejected: A direct oauthlib>=4.0.1 constraint in pyproject.toml. It adds a top-level pin for a package the project does not import, and a person must keep that pin current.
  • Should the audit gain an --ignore entry for GHSA-3jp2-3mrg-2vxc?: No. Keep the audit strict and raise the locked version instead. (best practice) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md, openspec/specs/scanner-adapters/spec.md]
    • Chosen: No suppression. A fixed release exists now, and ADR 0004 makes CI the gate, so a suppression lowers the gate for no gain.
    • Rejected: An --ignore entry with an expiry. The fixed version is available, so the entry hides a real finding until the expiry date.
  • Does this pull request carry the fix, or does the work wait for the automated dependency updater?: This pull request carries the fix. (best practice) [sources: tests/core/test_renovate_config.py, docs/adr/0004-ci-is-the-authoritative-gate.md]
    • Chosen: Fix in this pull request. The audit fails on every pull request until the lock moves, and the fix is one command.
    • Rejected: Wait for the next run of the dependency updater. Every pull request stays red until that run, and no guarantee exists that the run moves a transitive dependency.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/deps
    status/new
    value/high
    effort/low
    on Nov 5, 2026
  2. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/deps. The (deps) scope of the title gives the scope.
    • Priority: P1-High. A known CVE blocks the audit check on every pull request, halting all merges. The advisory GHSA-3jp2-3mrg-2vxc does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.
    • Value: High. Fixing the vulnerability unblocks CI and removes a security risk from the dependency tree.
    • Effort: Low. One package moves from 4.0.0 to 4.0.1 in the lock file; no code change is needed.
    • Related: fix(security): joserfc 1.7.5 has GHSA-9pg5-8c7x-5hfx and fails the dependency audit #2786, which asks for a different change. Both upgrade a single transitive dependency to a fixed release so that uv audit passes, but the candidate targets oauthlib while #2786 targets joserfc.
  3. added
    priority/p1-high
    owner/agent
    on Nov 5, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 5, 2026
  5. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at f481be8 (see proposed design in issue body).

  6. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 6, 2026
  7. removed
    status/in-review
    owner/agent
    on Nov 6, 2026
  8. added a commit that references this issue on Nov 6, 2026
  9. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor
  10. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 02:22 UTC

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

    effort/lowpriority/p1-highscope/depssource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions