Skip to content

Commit 23db5ae

Browse files
Sbussisoclaude
andcommitted
security(deps): constrain pip >=26.1.2 (PYSEC-2026-196) to unblock pip-audit
A new advisory landed against pip 26.1.1 (fixed in 26.1.2) since the last green deploy, turning the pip-audit --strict gate red even though no app code changed. pip is in the scanned env only because pip-audit pulls it in to resolve deps. Add a [tool.uv] constraint (same mechanism already used for authlib/urllib3/idna/starlette) and re-lock. Verified against the CI-exact sequence: 'uv sync --extra dev' installs pip 26.1.2 and 'uv run pip-audit --strict' reports no vulnerabilities. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4ab8952 commit 23db5ae

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

backend/pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,16 @@ ignore = ["B008", "UP045"]
144144
# deploy red. 1.0.0 → 1.0.1 is a patch; fastapi's starlette range
145145
# accepts it (uv resolves cleanly). Remove once fastapi's own pin
146146
# moves past 1.0.1.
147+
#
148+
# pip: PYSEC-2026-196 (fixed in 26.1.2). Present only because pip-audit
149+
# (our dev-time scanner) pulls pip in to resolve deps, then --strict audits
150+
# pip itself. Advisory landed ~2026-06 and turned the scan red even though
151+
# no code changed. Dev/CI surface only — pip isn't shipped in the app
152+
# image. Remove once pip-audit's own pin clears 26.1.2.
147153
constraint-dependencies = [
148154
"authlib>=1.7.1",
149155
"urllib3>=2.7.0",
150156
"idna>=3.15",
151157
"starlette>=1.0.1",
158+
"pip>=26.1.2",
152159
]

backend/uv.lock

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)