Repository navigation
Description
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.lockholdsoauthlib4.0.1 or newer. No other package moves, unless the lock needs it.uv audit --frozenfinds no known vulnerability.- No
--ignoreoption is added to the audit: the fix does not lower the check.
Existing tool considered
uv lock --upgrade-package oauthlib. Nothing is built.
Related
- fix(deps): upgrade dnspython to fix GHSA-45c3-73f7-pv4m #2349 was the same kind of failure for
dnspython.
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
oauthlibentry ofuv.lockis read after the change - THEN its
versionfield 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.lockdiff against the base revision is read - THEN the only changed
versionfield isoauthlib, plus any package thatoauthlib4.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 --frozenruns 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
- WHEN the audit invocation in the CI configuration and the scripts is searched
- THEN no
--ignoreargument names GHSA-3jp2-3mrg-2vxc or CVE-2026-49272
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
oauthlibversion doesuv.lockhold now, and which version clears the advisory?:uv.lockholdsoauthlib4.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 oauthlibre-resolves that package and its dependents only.uvdocuments 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 auditadapter audits the lockfile as it is, and the check runsuv 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 onlyoauthlib, 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.1constraint inpyproject.toml. It adds a top-level pin for a package the project does not import, and a person must keep that pin current.
- Chosen:
- Should the audit gain an
--ignoreentry 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
--ignoreentry 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
dan-petty commentedon Nov 5, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(deps)scope of the title gives the scope.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.Fixing the vulnerability unblocks CI and removes a security risk from the dependency tree.One package moves from 4.0.0 to 4.0.1 in the lock file; no code change is needed.Both upgrade a single transitive dependency to a fixed release so that uv audit passes, but the candidate targets oauthlib while #2786 targets joserfc.devops-cli-service commentedon Nov 5, 2026
Status set to Ready at f481be8 (see proposed design in issue body).
chore(main): release 0.64.0 (#3708)
devops-cli-service commentedon Nov 6, 2026
Released in v0.64.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.64.0
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 02:22 UTC