Skip to content

Update dependency urllib3 to v2.6.0#6345

Merged
dlvenable merged 1 commit into
mainfrom
whitesource-remediate/urllib3-2.x
Dec 12, 2025
Merged

Update dependency urllib3 to v2.6.0#6345
dlvenable merged 1 commit into
mainfrom
whitesource-remediate/urllib3-2.x

Conversation

@mend-for-github-com

@mend-for-github-com mend-for-github-com Bot commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Update Change
urllib3 (changelog) minor ==2.5.0 -> ==2.6.0

By merging this PR, the issue #6344 will be automatically resolved and closed:

Severity CVSS Score Vulnerability
High High 7.5 CVE-2025-66418
High High 7.5 CVE-2025-66471

Release Notes

urllib3/urllib3 (urllib3)

v2.6.0

Compare Source

==================

Security

  • Fixed a security issue where streaming API could improperly handle highly
    compressed HTTP content ("decompression bombs") leading to excessive resource
    consumption even when a small amount of data was requested. Reading small
    chunks of compressed data is safer and much more efficient now.
    (GHSA-2xpw-w6gg-jr37 <https://github.com/urllib3/urllib3/security/advisories/GHSA-2xpw-w6gg-jr37>__)
  • Fixed a security issue where an attacker could compose an HTTP response with
    virtually unlimited links in the Content-Encoding header, potentially
    leading to a denial of service (DoS) attack by exhausting system resources
    during decoding. The number of allowed chained encodings is now limited to 5.
    (GHSA-gm62-xv2j-4w53 <https://github.com/urllib3/urllib3/security/advisories/GHSA-gm62-xv2j-4w53>__)

.. caution::

  • If urllib3 is not installed with the optional urllib3[brotli] extra, but
    your environment contains a Brotli/brotlicffi/brotlipy package anyway, make
    sure to upgrade it to at least Brotli 1.2.0 or brotlicffi 1.2.0.0 to
    benefit from the security fixes and avoid warnings. Prefer using
    urllib3[brotli] to install a compatible Brotli package automatically.

  • If you use custom decompressors, please make sure to update them to
    respect the changed API of urllib3.response.ContentDecoder.

Features

  • Enabled retrieval, deletion, and membership testing in HTTPHeaderDict using bytes keys. (#&#8203;3653 <https://github.com/urllib3/urllib3/issues/3653>__)
  • Added host and port information to string representations of HTTPConnection. (#&#8203;3666 <https://github.com/urllib3/urllib3/issues/3666>__)
  • Added support for Python 3.14 free-threading builds explicitly. (#&#8203;3696 <https://github.com/urllib3/urllib3/issues/3696>__)

Removals

  • Removed the HTTPResponse.getheaders() method in favor of HTTPResponse.headers.
    Removed the HTTPResponse.getheader(name, default) method in favor of HTTPResponse.headers.get(name, default). (#&#8203;3622 <https://github.com/urllib3/urllib3/issues/3622>__)

Bugfixes

  • Fixed redirect handling in urllib3.PoolManager when an integer is passed
    for the retries parameter. (#&#8203;3649 <https://github.com/urllib3/urllib3/issues/3649>__)
  • Fixed HTTPConnectionPool when used in Emscripten with no explicit port. (#&#8203;3664 <https://github.com/urllib3/urllib3/issues/3664>__)
  • Fixed handling of SSLKEYLOGFILE with expandable variables. (#&#8203;3700 <https://github.com/urllib3/urllib3/issues/3700>__)

Misc

  • Changed the zstd extra to install backports.zstd instead of zstandard on Python 3.13 and before. (#&#8203;3693 <https://github.com/urllib3/urllib3/issues/3693>__)
  • Improved the performance of content decoding by optimizing BytesQueueBuffer class. (#&#8203;3710 <https://github.com/urllib3/urllib3/issues/3710>__)
  • Allowed building the urllib3 package with newer setuptools-scm v9.x. (#&#8203;3652 <https://github.com/urllib3/urllib3/issues/3652>__)
  • Ensured successful urllib3 builds by setting Hatchling requirement to >= 1.27.0. (#&#8203;3638 <https://github.com/urllib3/urllib3/issues/3638>__)

  • If you want to rebase/retry this PR, check this box

@github-actions

github-actions Bot commented Dec 9, 2025

Copy link
Copy Markdown

Unit Test Results

  2 291 files  +  1 354    2 291 suites  +1 354   1h 7m 9s ⏱️ + 41m 16s
12 065 tests +  5 919  12 057 ✔️ +  5 914  6 💤 +5  2 ±0 
21 718 runs  +11 896  21 708 ✔️ +11 890  8 💤 +6  2 ±0 

For more details on these failures, see this check.

Results for commit dfb3887. ± Comparison against base commit ee96c7c.

♻️ This comment has been updated with latest results.

@mend-for-github-com mend-for-github-com Bot force-pushed the whitesource-remediate/urllib3-2.x branch from 9b15eaa to dfb3887 Compare December 11, 2025 18:03
@dlvenable dlvenable merged commit d08e164 into main Dec 12, 2025
33 of 56 checks passed
@mend-for-github-com mend-for-github-com Bot deleted the whitesource-remediate/urllib3-2.x branch December 12, 2025 01:00
wandna-amazon pushed a commit to wandna-amazon/data-prepper that referenced this pull request Jan 8, 2026
Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com>
Signed-off-by: Nathan Wand <wandna@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security fix Security fix generated by WhiteSource

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant