Skip to content

fix(backend): clear pip-audit --strict on new cryptography/click advisories (CI #570) - #191

Draft
Sbussiso wants to merge 4 commits into
dependabot/github_actions/astral-sh/setup-uv-10.0.1from
ci-fix/32071155482
Draft

fix(backend): clear pip-audit --strict on new cryptography/click advisories (CI #570)#191
Sbussiso wants to merge 4 commits into
dependabot/github_actions/astral-sh/setup-uv-10.0.1from
ci-fix/32071155482

Conversation

@Sbussiso

Copy link
Copy Markdown
Contributor

CI fix for run #570 — pip-audit --strict failure

The "Test & Deploy" run #570 (32071155482) failed at the Dependency scan (pip-audit) step, blocking this Dependabot PR (setup-uv 10.0.1):

Found 4 known vulnerabilities in 2 packages
click        8.3.1   PYSEC-2026-2132  8.3.3
cryptography 48.0.1  PYSEC-2026-3552  50.0.0
cryptography 48.0.1  PYSEC-2026-3553  49.0.0
cryptography 48.0.1  PYSEC-2026-3554  49.0.0

Root cause

New advisories landed in the PyPA Advisory DB (~2026-08) against two transitive dependencies that the project doesn't pin directly:

  • click 8.3.1 — pulled in via uvicorn
  • cryptography 48.0.1 — pulled in via clerk-backend-api / authlib

No code changed; the scan just started failing on unrelated PRs. This is unrelated to the setup-uv action bump this PR is making.

Fix

Raises the existing transitive constraint floor in backend/pyproject.toml ([tool.uv] constraint-dependencies) and regenerates uv.lock:

  • cryptography>=48.0.1cryptography>=50.0.0 (clears all 3 new advisories; 50.0.0 is the highest floor)
  • new click>=8.3.3 constraint (PYSEC-2026-2132)

⚠️ Side effect — clerk-backend-api major bump

Forcing cryptography>=50.0.0 also advances clerk-backend-api 6.0.1 → 7.0.0 (a MAJOR bump). Clerk 6.x cannot satisfy cryptography 50.0.0, so the resolver is forced to clerk 7.0.0. This is documented in the constraint comment. The code only touches Clerk's stable auth surface (Clerk, authenticate_request, AuthenticateRequestOptions), and the full suite passes against clerk 7.0.0 — but this deserves a look before merge since it touches the auth layer.

Verified locally (sandbox, against this branch)

  • uv run ruff check → All checks passed
  • uv run pip-audit --strictNo known vulnerabilities found
  • uv run pytest -v699 passed

Once merged into dependabot/github_actions/astral-sh/setup-uv-10.0.1, the pip-audit gate on this PR will go green.

Hermes coder CI triage (automated)

dependabot Bot and others added 4 commits August 17, 2026 21:25
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.16.2 to 0.16.3.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.16.2...0.16.3)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.16.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [hls.js](https://github.com/video-dev/hls.js) from 1.6.16 to 1.7.0.
- [Release notes](https://github.com/video-dev/hls.js/releases)
- [Changelog](https://github.com/video-dev/hls.js/blob/master/docs/release-process.md)
- [Commits](video-dev/hls.js@v1.6.16...v1.7.0)

---
updated-dependencies:
- dependency-name: hls.js
  dependency-version: 1.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [fastmcp](https://github.com/PrefectHQ/fastmcp) from 3.4.6 to 3.4.7.
- [Release notes](https://github.com/PrefectHQ/fastmcp/releases)
- [Changelog](https://github.com/PrefectHQ/fastmcp/blob/main/docs/changelog.mdx)
- [Commits](PrefectHQ/fastmcp@v3.4.6...v3.4.7)

---
updated-dependencies:
- dependency-name: fastmcp
  dependency-version: 3.4.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…sories

The "Test & Deploy" CI run #570 (32071155482) failed at the
"Dependency scan (pip-audit)" step with 4 known vulnerabilities in 2
packages, blocking an unrelated Dependabot PR (setup-uv 10.0.1):

  click 8.3.1        PYSEC-2026-2132    fix 8.3.3
  cryptography 48.0.1 PYSEC-2026-3552    fix 50.0.0
  cryptography 48.0.1 PYSEC-2026-3553    fix 49.0.0
  cryptography 48.0.1 PYSEC-2026-3554    fix 49.0.0

Both are transitive deps surfaced by the PyPA advisory DB landing
new advisories during a quiet window — no code changed. The existing
constraint-dependencies block already pins cryptography>=48.0.1 to
clear the older GHSA-537c-gmf6-5ccf; this bump raises the floor to
>=50.0.0 to clear the three 2026-08 advisories and adds a new
click>=8.3.3 constraint for PYSEC-2026-2132 (transitive via uvicorn).

Side effect: forcing cryptography>=50.0.0 also advances
clerk-backend-api 6.0.1 -> 7.0.0 (a MAJOR bump) because clerk 6.x
cannot satisfy cryptography 50.0.0. The code uses only Clerk's stable
auth surface (Clerk, authenticate_request, AuthenticateRequestOptions),
and the full 699-test suite passes against clerk 7.0.0 + cryptography
50.0.0 + click 8.4.2. Noted in the constraint comment for the next
maintainer.

Verified locally:
  - uv run ruff check            -> All checks passed
  - uv run pip-audit --strict     -> No known vulnerabilities found
  - uv run pytest -v              -> 699 passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants