Skip to content

{Packaging} bump paramiko version - #33946

Open
mansoor sarfraz (msarfraz) wants to merge 1 commit into
Azure:devfrom
msarfraz:bump-paramiko
Open

{Packaging} bump paramiko version#33946
mansoor sarfraz (msarfraz) wants to merge 1 commit into
Azure:devfrom
msarfraz:bump-paramiko

Conversation

@msarfraz

@msarfraz mansoor sarfraz (msarfraz) commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ️✔️ All clear

Breaking Changes Tests
️✔️ None ️✔️ 130/130

Background

azure-cli declares a dependency of paramiko<4.0.0,>=2.0.8. GHSA-r374-rxx8-8654 (CWE-327) affects all paramiko releases through 4.0.0 — the fix is exclusively in paramiko 5.0.0, which removes SHA-1 RSA signature support. Because azure-cli caps its dependency below 4.0.0, any project that depends on azure-cli cannot resolve paramiko 5.0.0, leaving consumers with no available pip-compatible remediation path for this CVE.

Solution
Bump paramiko versin to 5.0.0 to resolve CVE-2026-44405 and allow paramiko dependency >= 5

Expected behavior
Installing azure-cli alongside paramiko>=5.0.0 resolves successfully

Copilot AI lite review requested due to automatic review settings August 21, 2026 02:56
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi mansoor sarfraz (@msarfraz),
Since the current milestone time is less than 7 days, this pr may not catch up with this release.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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 updates Azure CLI packaging metadata to allow/pin Paramiko 5.x in order to unblock remediation for a Paramiko CVE and ensure Azure CLI can be installed alongside Paramiko >= 5.

Changes:

  • Relaxed the Paramiko upper-bound in setup.py to permit 5.x.
  • Pinned Paramiko to 5.0.0 in the platform-specific Python 3 requirements files (Windows/Linux/macOS).
  • Updated NOTICE.txt to reflect Paramiko 5.0.0.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/azure-cli/setup.py Adjusts Paramiko version constraint for install_requires.
src/azure-cli/requirements.py3.windows.txt Pins Paramiko to 5.0.0 for Windows builds.
src/azure-cli/requirements.py3.Linux.txt Pins Paramiko to 5.0.0 for Linux builds.
src/azure-cli/requirements.py3.Darwin.txt Pins Paramiko to 5.0.0 for macOS builds.
NOTICE.txt Updates third-party notice entry to Paramiko 5.0.0.

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

Comment thread src/azure-cli/setup.py
'jsondiff~=2.0.0',
'packaging>=20.9',
'paramiko>=2.0.8,<4.0.0',
'paramiko>=2.0.8,<6.0.0',
@msarfraz

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@azure-client-tools-agent

Copy link
Copy Markdown
Contributor

Live test skipped

⏭️ Skipping the live test for this revision because no changed test file was found (tests/**/test_*.py).

The live-test pipeline runs only the test files a PR changes, so there is nothing to execute for this commit. A skipped live test is not a passing test result. The Agent review separately checks whether the affected command module includes focused regression tests or updated recordings. If a test file is changed in a later commit, the live test will run automatically.

@azure-client-tools-agent azure-client-tools-agent Bot 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.

All Checks Passed ✅

All CI checks passed and no live test failures were detected for this PR.

Check Result
CI pipeline ✅ All checks passed
Live test ⏭️ Skipped (no changed test files)
Regression coverage ✅ No gap detected

This PR ({Packaging} bump paramiko version) is ready for human review and merge.

@azure-client-tools-agent azure-client-tools-agent Bot added azure-client-tools-agent Pull request reviewed by Azure Client Tools Agent and removed Azure Client Tools Agent Requested Request Azure Client Tools Agent testing and review labels Aug 21, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

🔔 Routing this PR to @Azure/act-platform-engineering-squad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-platform-engineering-squad Auto-Assign Auto assign by bot azure-client-tools-agent Pull request reviewed by Azure Client Tools Agent Packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants