Skip to content

Patch urllib3 CVEs: bump to 2.7.0#527

Merged
moshemorad merged 1 commit into
mainfrom
patch-urllib3-cves
Jun 8, 2026
Merged

Patch urllib3 CVEs: bump to 2.7.0#527
moshemorad merged 1 commit into
mainfrom
patch-urllib3-cves

Conversation

@moshemorad

Copy link
Copy Markdown
Contributor

Summary

Resolves two HIGH-severity Vanta/Dependabot findings on the krr image, both in urllib3 2.6.3 (fixed in 2.7.0):

  • CVE-2026-44431 (5.3): sensitive headers (Authorization/Cookie/Proxy-Authorization) forwarded on cross-origin redirects via the low-level ProxyManager.connection_from_url().urlopen() flow.
  • CVE-2026-44432 (7.5): DoS via excessive HTTP response decompression (Brotli read / drain_conn) — CWE-409.

Changes

  • Bumps urllib3 ^2.6.3^2.7.0 in pyproject.toml
  • 2.6.32.7.0 in requirements.txt
  • Updates poetry.lock accordingly

Verification

  • Trivy rescan of requirements.txt reports 0 HIGH/CRITICAL
  • Full test suite passes (55 tests)

🤖 Generated with Claude Code

Resolves two HIGH-severity Vanta/Dependabot findings on the krr image,
both in urllib3 2.6.3 (fixed in 2.7.0):

- CVE-2026-44431 (5.3): sensitive headers (Authorization/Cookie/
  Proxy-Authorization) forwarded on cross-origin redirects via the
  low-level ProxyManager.connection_from_url().urlopen() flow.
- CVE-2026-44432 (7.5): DoS via excessive HTTP response decompression
  (Brotli read / drain_conn) — CWE-409.

Bumps urllib3 ^2.6.3 -> ^2.7.0 in pyproject.toml, 2.6.3 -> 2.7.0 in
requirements.txt, and updates poetry.lock accordingly. Trivy rescan of
requirements.txt reports 0 HIGH/CRITICAL; full test suite passes (55).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6fdcc12d-0ed9-400c-8688-faa3a482152e

📥 Commits

Reviewing files that changed from the base of the PR and between 4465a10 and 4315f04.

⛔ Files ignored due to path filters (1)
  • poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • pyproject.toml
  • requirements.txt

Walkthrough

Updates urllib3 from version 2.6.3 to 2.7.0 across the project's manifest files. The dependency constraint in pyproject.toml and the pinned version in requirements.txt are both incremented to reflect the new minor release.

Changes

urllib3 Dependency Update

Layer / File(s) Summary
urllib3 version 2.6.3 → 2.7.0
pyproject.toml, requirements.txt
Updates urllib3 from 2.6.3 to 2.7.0 in both the version constraint (^2.7.0) and the locked requirement for Python 3.10–3.13.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically identifies the main change: patching urllib3 CVEs by bumping to version 2.7.0, which directly aligns with the changeset.
Description check ✅ Passed The description is directly related to the changeset, providing context about the CVEs being addressed and detailing the version bumps in both pyproject.toml and requirements.txt.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch patch-urllib3-cves

Comment @coderabbitai help to get the list of available commands and usage tips.

@moshemorad moshemorad merged commit 2d07503 into main Jun 8, 2026
2 checks passed
@moshemorad moshemorad deleted the patch-urllib3-cves branch June 8, 2026 12:05
moshemorad added a commit that referenced this pull request Jun 8, 2026
## Summary

Follow-up to #527, which bumped urllib3 in the main krr image but left
the **enforcer** image still pinned to the vulnerable `urllib3==2.6.3`.

Bumps `enforcer/requirements.txt` `2.6.3` → `2.7.0` to resolve both
HIGH-severity findings on the `krr-enforcer` image:

- **CVE-2026-44431** (5.3): sensitive headers
(Authorization/Cookie/Proxy-Authorization) forwarded on cross-origin
redirects.
- **CVE-2026-44432** (7.5): DoS via excessive HTTP response
decompression — CWE-409.

## Note

The `krr-enforcer` image is built/pushed manually (no CI workflow), so a
new image build is required after merge for the fix to reach
deployments.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.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.

2 participants