Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,6 @@ jobs:
run: |
gh release upload ${{ github.ref_name }} dist/* --repo ${{ github.repository }}
- name: Publish to PyPI
uses: "pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e"
uses: "pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33" # v1.14.2
with:
attestations: true
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Release History
===============

2026.9.10
--------

- Added `chrome:152` profile with trust-anchor IDs and signature-algorithm GREASE; moved `chrome:stable` to it.
- Added `trust_anchors` and `permute_trust_anchors` fingerprint options; trust-anchor order is chosen once per context configuration.
- Updated `boring-sys` to support Chrome 152 signature GREASE.
- Fixed GREASE and certificate-compression settings leaking across pending connections and ECH forks.
- Fixed capture/replay losing signature GREASE and the ALPS codepoint.
- Fixed trust-anchor validation; `None` omits the extension and `b""` sends an empty list.

2026.7.8
--------

Expand Down
62 changes: 31 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [
]

[workspace.package]
version = "2026.7.8"
version = "2026.9.10"
edition = "2021"
rust-version = "1.75"
license = "MIT"
Expand All @@ -15,8 +15,8 @@ homepage = "https://github.com/jawah/utls"
authors = ["Ahmed TAHRI"]

[workspace.dependencies]
# Pinned to a cloudflare/boring master commit for ML-DSA
boring-sys = { git = "https://github.com/cloudflare/boring", rev = "931385ed41df448c82d150219f69af56e3c8399f" }
# Pinned to cloudflare/boring PR #524 for Chrome 152 signature GREASE.
boring-sys = { git = "https://github.com/cloudflare/boring", rev = "553d389cf309fdea5075e8fa2d2f731be67d96cc" }
libc = "0.2"
thiserror = "1"
brotli = { version = "8", default-features = false, features = ["std"] }
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ BoringSSL-backed TLS for CPython, with Chrome impersonation
-----------------------------------------------------------

Drop-in replacement for the `ssl` stdlib with a `Fingerprint` API for Chrome
impersonation. Built on stock BoringSSL through `boring-sys` - no vendored
patches, no curl-impersonate, no Go runtime at import time. Use it with any
known Python http client you like or used to.
impersonation. Built on stock BoringSSL through `boring-sys` - no
curl-impersonate, no Go runtime at import time. Use it with any known
Python http client you like or used to.

Supports CPython 3.7 onward, including freethreaded builds.

Expand Down Expand Up @@ -103,7 +103,7 @@ The bundled profile registry can be inspected at runtime:
from utls import Fingerprint, presets

print(presets())
# ['chrome:131', 'chrome:142', 'chrome:146', 'chrome:148', 'chrome:150', 'chrome:stable']
# ['chrome:131', 'chrome:142', 'chrome:146', 'chrome:148', 'chrome:150', 'chrome:152', 'chrome:stable']

fp = Fingerprint.from_preset("chrome:stable")
print(fp.ja3_hash, fp.ja4_hash)
Expand Down Expand Up @@ -159,10 +159,10 @@ For HTTP/1.1, prepend `Host` at position 0 to preserve Chrome's wire order.

- `chrome:stable` always tracks the newest Chrome major shipped in a utls
release. Use this if you want to drift with Chrome without code changes.
- `chrome:148`, `chrome:146`, `chrome:142`, `chrome:131` pin to specific
Chrome majors. Use these when reproducibility matters - e.g. a long-
running scraper that should not silently change shape when utls is
upgraded.
- `chrome:152`, `chrome:150`, `chrome:148`, `chrome:146`, `chrome:142`,
`chrome:131` pin to specific Chrome majors. Use these when
reproducibility matters - e.g. a long-running scraper that should not
silently change shape when utls is upgraded.

The JA4 hash is the fingerprint identity that bot-detection vendors and
TLS observatories actually index on. `chrome:142` / `chrome:146` /
Expand All @@ -171,7 +171,8 @@ ClientHello (the deltas are HTTP-layer); `chrome:131` differs because it
uses the legacy ALPS codepoint (`0x4469` vs `0x44cd`). `chrome:150` also
differs: it is the first stable major to advertise post-quantum ML-DSA
(FIPS 204) signature algorithms, which changes the `signature_algorithms`
bytes and therefore the JA4.
bytes and therefore the JA4. `chrome:152` adds the `trust_anchors`
extension (`0xCA34`), taking the JA4 extension count from 16 to 17.

#### Why JA3 varies but JA4 stays put

Expand Down
Loading
Loading