Skip to content

fix(deps): bump pip to 26.2.1 (Dependabot alert #21) - #343

Merged
ritiksah141 merged 3 commits into
devfrom
fix/pip-26.2.1-vuln
Sep 20, 2026
Merged

ritiksah141 merged 3 commits into
devfrom
fix/pip-26.2.1-vuln

Conversation

@TFT444

@TFT444 TFT444 commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps pip from 26.1.2 to 26.2.1 in requirements-lock.txt
  • Fixes Dependabot security alert Feat/az stor 003 #21 (medium severity)
  • Vulnerability: pip < 26.2.0 incorrectly handles doubly-encoded package URLs from indexes, which could allow a malicious index to serve unexpected packages

Changes

Only requirements-lock.txt is modified. The pinned version and its sha256 hash are updated to the latest release (26.2.1).

Test plan

  • CI passes (SCA pip-audit job should no longer flag this CVE)
  • No other dependencies changed

Closes Dependabot alert: https://github.com/OWASP/openshield/security/dependabot/21

@TFT444
TFT444 requested a review from Vishnu2707 as a code owner September 16, 2026 01:39
pip < 26.2.0 would incorrectly handle doubly-encoded package URLs from
indexes, allowing a malicious index to serve unexpected packages. This
updates requirements-lock.txt to pin pip==26.2.1 with the correct hash.

Fixes: https://github.com/OWASP/openshield/security/dependabot/21
Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
@TFT444
TFT444 force-pushed the fix/pip-26.2.1-vuln branch from e15f2cd to 62740dd Compare September 16, 2026 01:46
@github-actions

github-actions Bot commented Sep 16, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
pip/pip 26.2.1 UnknownUnknown
pip/pip-tools 7.6.1 UnknownUnknown

Scanned Files

  • requirements-lock.txt

Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
pip-tools 7.5.3 imports stdlib_pkgs from pip._internal.utils.compat,
which was removed in pip 26.2.1. pip-tools 7.6.1 dropped that internal
dependency (fixed in 7.4.1). Update the source pin in requirements-lock.in,
the compiled hash in requirements-lock.txt, and the version guard in
lock_dependencies.py to keep all three in sync.

Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
@TFT444

TFT444 commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator Author

@m-khan-97 @parthrohit22 @ritiksah141 @Vishnu2707

This PR bumps pip to 26.2.1 (Dependabot alert #21). Also upgraded pip-tools to 7.6.1 (compatible with pip 26.2.1, which removed stdlib_pkgs from pip._internal.utils.compat), updated the source pin in requirements-lock.in, the hash in requirements-lock.txt, and the version guard in lock_dependencies.py. CI is fully green. First review appreciated.

@m-khan-97 m-khan-97 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I reviewed the complete three-file change and verified the artifacts independently. The downloaded pip 26.2.1 and pip-tools 7.6.1 wheel SHA-256 values exactly match the committed hashes, the source pins and version guard agree, and all 12 dependency-lock tests pass locally. CI is also green. Approved.

@ritiksah141
ritiksah141 merged commit 9af48bb into dev Sep 20, 2026
21 checks passed
@ritiksah141
ritiksah141 deleted the fix/pip-26.2.1-vuln branch September 20, 2026 00:22
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.

3 participants