Skip to content

security: upgrade urllib3 to 2.7.0 and AWS SDK for compatibility#7745

Draft
wtfiwtz wants to merge 1 commit into
getredash:masterfrom
orchestrated-io:security/urllib3-2.7-aws-sdk
Draft

security: upgrade urllib3 to 2.7.0 and AWS SDK for compatibility#7745
wtfiwtz wants to merge 1 commit into
getredash:masterfrom
orchestrated-io:security/urllib3-2.7-aws-sdk

Conversation

@wtfiwtz

@wtfiwtz wtfiwtz commented Jun 2, 2026

Copy link
Copy Markdown

Summary

Upgrade urllib3 from 1.26.19 to 2.7.0 (major version) to address multiple security vulnerabilities. This requires upgrading boto3/botocore and temporarily removing advocate (which blocks urllib3 2.x). SSRF protection will be restored via champion in PR #7746.

Changes

  • urllib3: 1.26.19 → 2.7.0
  • boto3: 1.28.8 → 1.43.7 (botocore 1.31.x pinned urllib3 <1.27, blocking the upgrade)
  • botocore: 1.31.8 → 1.43.7
  • Add transitive dependencies required for boto3 1.43.x + urllib3 2.x:
    • azure-core >=1.38.0
    • grpcio >=1.80.0,<2
    • h11 >=0.16.0
    • httpcore >=1.0.9
    • marshmallow >=3.26.2
  • Remove advocate (temporarily) - blocks urllib3 2.x due to urllib3 <2.0 pin
  • Update redash/utils/requests_session.py to use requests directly

CVEs Addressed

  • CVE-2023-43804 (urllib3): Cookie header injection
  • CVE-2024-37891 (urllib3): Proxy-authorization header leak on redirect
  • Multiple urllib3 1.26.x → 2.x security fixes through 2.7.0

Breaking Changes

Testing

  • ✅ Python tests pass
  • ✅ Frontend tests pass
  • poetry lock regenerates successfully

Dependencies

Release Notes

Made with Cursor

Upgrade urllib3 from 1.26.19 to 2.7.0 (major version) to address multiple security
vulnerabilities. This requires upgrading boto3/botocore and temporarily removing
advocate (blocks urllib3 2.x). SSRF protection will be restored via champion in
a follow-up PR.

Changes:
- urllib3: 1.26.19 → 2.7.0
- boto3: 1.28.8 → 1.43.7
- botocore: 1.31.8 → 1.43.7
- Add transitive dependencies: azure-core >=1.38.0, grpcio >=1.80.0, h11 >=0.16.0, httpcore >=1.0.9, marshmallow >=3.26.2
- Remove advocate (temporarily) - blocks urllib3 2.x upgrade
- Update redash/utils/requests_session.py to use requests directly

CVEs Addressed:
- CVE-2023-43804 (urllib3): Cookie header injection
- CVE-2024-37891 (urllib3): Proxy-authorization header leak on redirect
- Multiple urllib3 1.26.x → 2.x security fixes

Breaking Changes:
- ENFORCE_PRIVATE_ADDRESS_BLOCK setting is temporarily non-functional
- SSRF protection will be restored via champion package in PR getredash#7746

Testing:
- ✅ Python tests pass
- ✅ Frontend tests pass
- ✅ poetry lock regenerates successfully

Release Notes:
- urllib3: https://github.com/urllib3/urllib3/releases/tag/2.7.0
- boto3: https://github.com/boto/boto3/releases/tag/1.43.7

Co-authored-by: Cursor <cursoragent@cursor.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.

1 participant