Skip to content

chore(deps): bump click to 8.4.2 for PYSEC-2026-2132 - #599

Merged
ian-flores merged 1 commit into
mainfrom
chore-bump-click-459
Aug 18, 2026
Merged

chore(deps): bump click to 8.4.2 for PYSEC-2026-2132#599
ian-flores merged 1 commit into
mainfrom
chore-bump-click-459

Conversation

@ian-flores

Copy link
Copy Markdown
Collaborator

The scheduled dependency audit reports one known vulnerability: click 8.3.1, PYSEC-2026-2132, fixed in 8.3.3.

click reaches the tree only through flask, which comes from locust, which lives in the [load] optional group. The pin therefore goes in [load] rather than the base dependencies, alongside the three CVE pins already there (msgpack, python-engineio, python-socketio), and follows the same comment convention naming the advisory and the transitive path. Relocking resolved click to 8.4.2, comfortably above the 8.3.3 floor.

selftests/test_dependency_pins.py caught the new entry and required it be classified, which is the guard working as designed, so click is added to CAPPED_OPTIONAL["load"]. The pin already carries the <9 upper bound the policy requires.

Verification

uv run --all-extras --with pip-audit pip-audit --skip-editable, the same invocation CI uses, now reports "No known vulnerabilities found" with only the expected editable-install skip for posit-vip. Selftests pass with the load extra installed, apart from the pre-existing macOS load-engine failure fixed separately in #597. Ruff check and format clean.

Closes #459

Copilot AI lite review requested due to automatic review settings August 18, 2026 16:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a reported dependency vulnerability (PYSEC-2026-2132) by adding an explicit cap for click in the load optional dependency group (where it is pulled transitively via locustflask), and relocks to a non-vulnerable resolved version.

Changes:

  • Add click>=8.3.3,<9 to the [project.optional-dependencies].load group with an advisory/path comment.
  • Update uv.lock so click resolves to 8.4.2 and is recorded under the load extra metadata.
  • Update selftest classification to include click in the capped optional load group.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
pyproject.toml Adds an explicit click pin/cap in the load extra to remediate PYSEC-2026-2132.
uv.lock Updates the locked click version to 8.4.2 and reflects the load extra requiring click>=8.3.3,<9.
selftests/test_dependency_pins.py Classifies click under CAPPED_OPTIONAL["load"] to satisfy the dependency pinning policy guard.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ian-flores
ian-flores marked this pull request as ready for review August 18, 2026 18:50
@ian-flores
ian-flores merged commit 15d8faa into main Aug 18, 2026
43 checks passed
@ian-flores
ian-flores deleted the chore-bump-click-459 branch August 18, 2026 18:50
@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-18 18:50 UTC

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.

Dependency audit: known vulnerabilities detected

2 participants