Skip to content

fix(backend): bump pip-audit --strict floors for 5 new advisories (CI #587) - #208

Draft
Sbussiso wants to merge 1 commit into
masterfrom
ci-fix/32779502864
Draft

fix(backend): bump pip-audit --strict floors for 5 new advisories (CI #587)#208
Sbussiso wants to merge 1 commit into
masterfrom
ci-fix/32779502864

Conversation

@Sbussiso

Copy link
Copy Markdown
Contributor

Summary

Fixes the Dependency scan (pip-audit) failure in Test & Deploy run #587 (run 32779502864).

pip-audit --strict reported 5 known vulnerabilities in 3 packages after new advisories landed in the PyPA Advisory DB:

Package Version Advisory Fix
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
pip 26.1.2 PYSEC-2026-3721 26.2

Root cause

The Backend tests job's Dependency scan (pip-audit) step runs uv run pip-audit --strict, which audits the entire resolved dependency tree against the PyPA Advisory DB. Three new advisories (one for click, three for cryptography, one for pip) landed after the last green run, turning the scan red even though no code changed. All three are transitive / dev-surface-only — none are direct dependencies, and pip itself isn't shipped in the app image (it's only present because pip-audit pulls it in to resolve deps).

Fix

Bump the [tool.uv] constraint-dependencies floors in backend/pyproject.toml, following the established pattern in this block (each entry cites the advisory and notes when the constraint can be removed):

  • pip>=26.1.2pip>=26.2
  • cryptography>=48.0.1cryptography>=50.0.0 (50.0.0 satisfies all three cryptography advisories)
  • add click>=8.3.3 (new entry; transitive via uvicorn)

uv lock regenerates cleanly. The cryptography floor cascades clerk-backend-api 6.0.1 → 7.0.0 (accepted by its own version range).

Verification

Run locally in the sandbox (Python 3.12):

  • uv lock — resolves 121 packages cleanly
  • uv run pip-audit --strictNo known vulnerabilities found
  • uv run ruff check — All checks passed
  • uv run pytest -q699 passed in 12.75s

Notes

CI run #587 (32779502864) failed the `Dependency scan (pip-audit)`
step in the Test & Deploy workflow — pip-audit --strict reported 5
known vulnerabilities in 3 packages after new advisories landed in
the PyPA Advisory DB:

  - 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)
  - pip          26.1.2  PYSEC-2026-3721  (fix: 26.2)

All three are transitive / dev-surface-only — none are direct deps and
pip itself isn't shipped in the app image. Bump the [tool.uv]
constraint-dependencies floors to the fixed versions, following the
established pattern in this block (each entry cites the advisory and
notes when the constraint can be removed):

  - pip>=26.1.2  ->  pip>=26.2
  - cryptography>=48.0.1  ->  cryptography>=50.0.0
  - add click>=8.3.3  (new; transitive via uvicorn)

uv lock regenerates cleanly; the cryptography floor cascades
clerk-backend-api 6.0.1 -> 7.0.0 (accepted by its own range). Verified
locally: pip-audit --strict reports "No known vulnerabilities found",
ruff check passes, and all 699 backend tests pass.

Refs: CI run https://github.com/SourceBox-LLC/Sentinel-Command/actions/runs/32779502864
Sbussiso referenced this pull request Aug 24, 2026
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 14.6.3 to 14.6.5.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](testing-library/user-event@v14.6.3...v14.6.5)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-version: 14.6.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
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.

1 participant