pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/py-urllib3
Module Name: pkgsrc
Committed By: adam
Date: Tue Sep 22 11:41:35 UTC 2026
Modified Files:
pkgsrc/www/py-urllib3: Makefile distinfo
Log Message:
py-urllib3: updated to 2.8.0
2.8.0 (2026-09-15)
Security
Fixed the following security issues:
- The TLS configuration for HTTPS proxies could be ignored or overridden.
(High severity, `GHSA-8988-9cw3-xx77 <https://github.com/urllib3/urllib3/security/advisories/GHSA-8988-9cw3-xx77>`__)
- ``HTTPResponse.stream()`` and ``read_chunked()`` could buffer a chunk-size
line of unbounded length in memory. (High severity,
`GHSA-vxq7-64xx-v4gw <https://github.com/urllib3/urllib3/security/advisories/GHSA-vxq7-64xx-v4gw>`__)
- Chunked Deflate streaming could enter an infinite loop. (Medium severity,
`GHSA-gh4c-6fx4-qh6g <https://github.com/urllib3/urllib3/security/advisories/GHSA-gh4c-6fx4-qh6g>`__)
.. caution::
urllib3 2.8.0 fixes HTTPS proxy TLS configuration being ignored or
overridden by destination settings. Configurations relying on that
behavior may require changes.
Configure proxy CA certificates and client certificates in
``proxy_ssl_context``, and proxy identity checks with
``proxy_assert_hostname`` or ``proxy_assert_fingerprint``.
Destination client certificates and identity overrides no longer
apply to HTTPS forwarding proxy connections.
Deprecations & Removals
- Deprecated using an empty collection as the ``Retry`` option
``allowed_methods`` to retry any verb.
Features
- Added ``Url.auth_decoded`` and ``Url.auth_decoded_joined`` convenience
properties to the result of ``parse_url()``.
- Added ``basic_auth_encoding`` and ``proxy_basic_auth_encoding`` parameters to
``urllib3.util.make_headers()``.
Bugfixes
- Fixed response header handling to replace obsolete folded header lines
(`obs-fold`) with spaces in accordance with RFC 9112, preventing raw CRLF
sequences from appearing in header values such as ``Set-Cookie``.
- Fixed usage of ``proxy_ssl_context`` with ``ProxyManager`` when
``use_forwarding_for_https=True``. Passing ``ssl_context`` instead of
``proxy_ssl_context`` for HTTPS proxies in this configuration now emits a
``FutureWarning`` and will raise an error in v3.0.
- Changed behavior of the default ``ConnectionPool.pool`` initialization.
``LifoQueue`` is now resolved from the ``queue`` module after the
``ConnectionPool`` is instantiated instead of using the default cached
``QueueCls`` class property. This is done because sometimes the
``queue.LifoQueue`` is monkey-patched late in the program, such as by gevent.
- Raised ``UnrewindableBodyError`` instead of ``ValueError`` when retrying a
request whose body had ``tell()`` but not ``seek()``.
- Decoded percent-encoded SOCKS proxy credentials before authenticating with
the proxy server.
- Fixed ``HTTPResponse.drain_conn()`` to discard unread response data in 64 KiB
chunks (same as the default ``amt`` when doing ``HTTPResponse.stream(...)``).
- Fixed ``is_ipaddress()`` to detect non-standard IPv4 forms accepted by
``socket.connect``, such as hex (``0x7f000001``), octal (``0177.0.0.1``), and
decimal integers (``2130706433``), ensuring SSL certificate verification uses
the correct mode for these addresses.
- Fixed ``HTTPConnectionPool.urlopen`` raising a misleading ``FullPoolError``
instead of ``ValueError`` when called with an invalid ``timeout`` argument on
a pool created with ``block=True``.
- Fixed port-zero handling to preserve explicit ``:0`` values instead of
substituting the default ports 80 or 443 in URL parsing, pool selection,
proxy configuration, ``connection_from_url()``, and HTTP/2 request authority.
- Fixed a bug where ``PoolManager`` passed the ``assert_hostname`` and
``assert_fingerprint`` parameters to HTTP connection pools.
- Fixed ``HTTPConnectionPool.urlopen()`` and HTTP proxy forwarding to strip URL
fragments from absolute request targets before sending requests.
- Added safeguards to the proxy tunneling code to prevent potential security
issues when handling invalid characters in the proxy host and HTTP headers.
This change affects users of Python 3.10, Python 3.11, and Python 3.12 when
the standard library does not contain the fix; those on newer Python versions
should upgrade to 3.13.14+ or 3.14.5+ to get the same security fixes.
- Fixed ``HTTPSConnection.connect()`` overriding ``ProxyConfig.ssl_context``'s
certificate policy and proxy identity checks with the target connection's TLS
settings when forwarding through an HTTPS proxy.
``HTTPSConnection`` no longer applies target SNI, assertions, or client
credentials to forwarding proxy handshakes and continues to use its
``ssl_context`` as a fallback when an HTTPS proxy forwards an HTTP target.
- Fixed URL parsing to more strictly enforce RFC 3986 host syntax, rejecting
invalid host input such as raw spaces and control characters, malformed
percent-encodings, and percent-encoded control characters in HTTP(S) hosts
and IPv6 zone identifiers, including proxy CONNECT tunnel targets. Host
normalization now also follows RFC 3986 normalization rules for
percent-encoded octets by decoding percent-encoded unreserved characters and
uppercasing the hexadecimal digits of retained percent-encoded octets.
- Fixed an ``AttributeError`` on Python built with OpenSSL 4+, where
``ssl.PROTOCOL_TLSv1`` no longer exists.
- Fixed ``urllib3.contrib.pyopenssl`` to use cryptography APIs when reading a
certificate subject and loading encrypted private keys, avoiding
``DeprecationWarning`` raised by pyOpenSSL 26.3.0+.
- Fixed handling of HTTP 303 redirects for requests with chunked or file-like
bodies.
- Fixed ``assert_fingerprint()`` to raise ``SSLError`` instead of
``binascii.Error`` when a fingerprint has a supported length but contains
non-hexadecimal characters.
To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 pkgsrc/www/py-urllib3/Makefile
cvs rdiff -u -r1.58 -r1.59 pkgsrc/www/py-urllib3/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/py-urllib3/Makefile
diff -u pkgsrc/www/py-urllib3/Makefile:1.72 pkgsrc/www/py-urllib3/Makefile:1.73
--- pkgsrc/www/py-urllib3/Makefile:1.72 Fri May 8 11:58:35 2026
+++ pkgsrc/www/py-urllib3/Makefile Tue Sep 22 11:41:35 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.72 2026/05/08 11:58:35 adam Exp $
+# $NetBSD: Makefile,v 1.73 2026/09/22 11:41:35 adam Exp $
-DISTNAME= urllib3-2.7.0
+DISTNAME= urllib3-2.8.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=u/urllib3/}
Index: pkgsrc/www/py-urllib3/distinfo
diff -u pkgsrc/www/py-urllib3/distinfo:1.58 pkgsrc/www/py-urllib3/distinfo:1.59
--- pkgsrc/www/py-urllib3/distinfo:1.58 Fri May 8 11:58:35 2026
+++ pkgsrc/www/py-urllib3/distinfo Tue Sep 22 11:41:35 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.58 2026/05/08 11:58:35 adam Exp $
+$NetBSD: distinfo,v 1.59 2026/09/22 11:41:35 adam Exp $
-BLAKE2s (urllib3-2.7.0.tar.gz) = 45f8c35da649071fb001e268ae37d99b409a39fb7eec3cba65cc2d7b5f027a90
-SHA512 (urllib3-2.7.0.tar.gz) = 6f75e5873f18301de37c0d7f17c726b21c9928f2fe9ec58d843f1172b80be6eb05117bdf7af27dd7eb1ab0175a94e0f49cde01d8d8919f61de8710e163fabc03
-Size (urllib3-2.7.0.tar.gz) = 433602 bytes
+BLAKE2s (urllib3-2.8.0.tar.gz) = a800cb95f60aa6137d6b1374259da639ec0abecb0ea018bc09f7f60c8472089a
+SHA512 (urllib3-2.8.0.tar.gz) = 3104f0b89b9d7421b0b13ff34c9e68a315772f2e1271c8b02da516b7dc4108676e632145ab9b390c3d9033019253f36a48ca44c5b89269058eebb0d21f472383
+Size (urllib3-2.8.0.tar.gz) = 458972 bytes
Home |
Main Index |
Thread Index |
Old Index