Skip to content

Bump native tls-client library to v1.18.1 - #169

Open
felipeadeildo wants to merge 2 commits into
FlorianREGAZ:mainfrom
felipeadeildo:bump/tls-client-1.18.1
Open

felipeadeildo wants to merge 2 commits into
FlorianREGAZ:mainfrom
felipeadeildo:bump/tls-client-1.18.1

Conversation

@felipeadeildo

@felipeadeildo felipeadeildo commented Nov 11, 2026 •

Copy link
Copy Markdown

Bumps the bundled bogdanfinn/tls-client from v1.16.0 to v1.18.1.

Changes

  • scripts/fetch_library.py: VERSION = "1.18.1".
  • tls_client/dependencies/SHA256SUMS: pins the v1.18.1 libraries.
  • tls_client/settings.py: adds chrome_154, chrome_154_PSK and safari_27_2, so the list matches upstream's MappedTLSClients exactly.

What Python users get

  • Proxy dials and CONNECT now respect the timeout, so a stalled proxy no longer hangs the request.
  • Fixes for IDN hosts, https-to-http redirects, and a panic plus deadlock on stale connections.
  • brotli v1.2.7 (CVE-2026-111497).
  • chrome_150, the upstream default, now sends the trust_anchors extension like real Chrome 150.

The breaking changes need nothing from the wrapper:

  • The Go API changes don't reach Python.
  • The wrapper always sends a sessionId.
  • The library decompresses zstd itself when a request sets no Accept-Encoding.

Testing

I ran the tests with the official tls-client-linux-ubuntu-amd64.so from the v1.18.1 release. It knows every identifier in settings.py, including the three new ones.

  • ruff and mypy pass.
  • pytest passes, including the integration and network tests (494 tests).
  • On tls.peet.ws, chrome_150 gives JA4 t13d1517h2_8daaf6152771_cb7bf5808d99, the value the release notes list for real Chrome 150.

Follow-up idea

A daily workflow could watch bogdanfinn's releases and open a bump PR like this one, so the bundled library doesn't fall behind again. I can send it separately if you want it.

Adds the chrome_154, chrome_154_PSK and safari_27_2 identifiers, the only
profiles upstream added since v1.16.0. SHA256SUMS still pins v1.16.0: the
v1.18.1 release has no binaries yet.
The v1.18.1 release now has its binaries, built with the chrome_154,
chrome_154_PSK and safari_27_2 profiles.
@felipeadeildo
felipeadeildo marked this pull request as ready for review November 13, 2026 14:20

This branch has not been deployed

No deployments
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