VLESS REALITY: `reality verification failed` against Xray-core v26.9.8+ servers (server now requires X25519MLKEM768 key share)
Operating system
Linux
System version
Debian GNU/Linux 13 (amd64); also reproduced on Windows 11 x64 (client side is OS-independent)
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
No response
Version
sing-box version 1.12.25
Environment: go1.23.12 linux/mipsle
Also affected: 1.14.0 (go1.25.8 windows/amd64), 1.15.0-alpha.2, dev f6ce1d5 (metacubex/utls v1.8.7)
Description
What happened?
Since Xray-core v26.9.8 / v26.9.9 upgraded github.com/xtls/reality to v0.0.0-20260908062103-8cdf7bf9c7f0, every sing-box version I tested can no longer connect to REALITY servers running these builds. The client always fails with:
connection: open connection to <host>:443 using outbound/vless[out]: reality verification failed
Server-side root cause
REALITY commit 8cdf7bf9c7f0 ("REALITY protocol: Reject outdated/strange Client Hello that doesn't have X25519MLKEM768 before optional X25519") makes the REALITY server require the client ClientHello to contain an X25519MLKEM768 key share (listed before any plain X25519). If it is missing, the server treats the handshake as unauthorized and silently falls back to the configured destination, so the client-side session verification fails.
sing-box's chrome uTLS fingerprint (HelloChrome_Auto from metacubex/utls) does not emit an X25519MLKEM768 key share, so all sing-box REALITY handshakes are rejected by these servers.
Control experiments
- The exact same client config against a server built from the same Xray-core v26.9.9 source but with
github.com/xtls/realitypinned to the parent commit e1986a4d31ca (i.e. without this ClientHello check) connects fine (full-tunnel curl returns HTTP 204/200). - Current Xray-core clients (uTLS chrome) still connect to the v26.9.9 server without issues.
So the only variable is the server-side REALITY bump: sing-box's ClientHello is now classified as "outdated/strange" and rejected.
Suggested fix
Could sing-box, via metacubex/utls, emit an X25519MLKEM768-first key share for the chrome-family fingerprints (sync the Chrome fingerprint definitions from upstream refraction-networking/utls, or extend HelloChrome_Auto)? Otherwise all sing-box (and mihomo, same fork) REALITY users are locked out of servers running Xray-core >= v26.9.8 - the version server operators are now encouraged to run for the REALITY memory-leak fix.
Reproduction
Server (Xray-core v26.9.9, official release binary)
server.json:
{
"inbounds": [
{
"tag": "reality",
"listen": "127.0.0.1",
"port": 8443,
"protocol": "vless",
"settings": {
"clients": [{ "id": "48796f85-218b-42fb-88dd-55ac99d0a767", "flow": "xtls-rprx-vision" }],
"decryption": "none"
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"dest": "www.sonic.com:443",
"serverNames": ["www.sonic.com"],
"privateKey": "GNcg__Kp68P5txlaRHOQX-TYxlYS_fvsnWZ4W53g0Ek",
"shortIds": ["87ed"]
}
}
}
],
"outbounds": [{ "protocol": "freedom" }]
}
Run: xray run -c server.json
Client (any affected sing-box build)
client.json:
{
"inbounds": [{ "type": "mixed", "tag": "in", "listen": "127.0.0.1", "listen_port": 10808 }],
"outbounds": [
{
"type": "vless",
"tag": "out",
"server": "127.0.0.1",
"server_port": 8443,
"uuid": "48796f85-218b-42fb-88dd-55ac99d0a767",
"flow": "xtls-rprx-vision",
"tls": {
"enabled": true,
"server_name": "www.sonic.com",
"utls": { "enabled": true, "fingerprint": "chrome" },
"reality": { "enabled": true, "public_key": "ywFgsEouyJvRVRxWvkhes19RSblBm6y0p6NT5IHSFD8", "short_id": "87ed" }
}
}
]
}
Run: sing-box run -c client.json, then curl --socks5 127.0.0.1:10808 https://www.gstatic.com/generate_204 -> fails; the sing-box log shows reality verification failed.
Clients tested (all fail)
- 1.12.25 (go1.23.12, linux/mipsle)
- 1.14.0 (go1.25.8, windows/amd64)
- 1.15.0-alpha.2
- dev f6ce1d5 (metacubex/utls v1.8.7), with fingerprints
chrome,chrome_pq,chrome_pq_psk
Control experiment
Rebuild the server from the same v26.9.9 source tree with only github.com/xtls/reality pinned to the parent commit (go get github.com/xtls/[email protected], commit e1986a4d31ca, i.e. without the ClientHello check). The exact same configs then work and curl returns 204.
Logs
dev f6ce1d5, fingerprint chrome:
ERROR [...] connection: open connection to www.gstatic.com:443 using outbound/vless[out]: reality verification failed
1.12.25 / 1.14.0 / 1.15.0-alpha.2 show the same `reality verification failed` error.
Supporter
- [ ] I am a sponsor
Integrity requirements
- [x] I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
- [x] I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
- [x] I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
- [x] I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
这是一个典型的 uTLS 指纹与服务端新版 REALITY 校验逻辑不匹配的问题,根因分析基本准确。
问题定位
Xray-core 在 v26.9.8/v26.9.9 引入的 REALITY 变更(对应 commit 8cdf7bf9c7f0)要求服务端在校验 ClientHello 时必须看到 X25519MLKEM768(混合后量子密钥交换)出现在 key_share 扩展列表中,且需排在普通 X25519 之前。
如果客户端 ClientHello 不满足这一条件,服务端会判定为"非授权访问",按 REALITY 的设计静默 fallback 到配置的 dest,而不会返回任何错误——这也是为什么客户端表现为 reality verification failed 而不是明确的协议错误。
sing-box 依赖的 metacubex/utls(fork 自 refraction-networking/utls)中,HelloChrome_Auto 这个 ClientHelloID 对应的 TLS spec 目前不包含 X25519MLKEM768 curve,因此无论 sing-box 版本如何,只要底层 utls 没有更新这个 spec,握手就会持续失败。
建议排查方向
先确认这是 utls 库层面缺失,而不是 sing-box 应用层的问题:
# 抓包查看实际发出的 ClientHello 中 key_share 列表
tcpdump -i any -w reality_handshake.pcap host <server_ip> and port 443
用 Wireshark 打开后检查 key_share extension 中是否包含 curve X25519Kyber768Draft00 或 X25519MLKEM768(不同实现命名可能不同)。
可能的临时规避
# 查看当前 sing-box 编译时使用的 utls 版本
go list -m github.com/metacubex/utls
如果确认 utls 尚未支持该 curve,短期内没有客户端侧配置项可以规避,只能等待 utls 上游合入对应 spec(通常跟随 Chrome 稳定版行为,Chrome 116+ 已默认启用该特性)。
后续建议
可以到 metacubex/utls 仓库确认是否已有相关 PR 在跟进;如果没有,建议在该仓库单独开 issue 追踪 utls 层面的修复,而不仅是在 sing-box 侧等待上游更新。此外,若你有自建 REALITY 服务端,也可以临时锁定 xtls/reality 到旧版本作为过渡方案。
补充说明:这个问题与网络环境(NAT、多设备、多 IP)或节点稳定性无关,纯粹是 TLS 层密钥交换算法协商的兼容性缺口,排查时可以直接聚焦在 utls 的 ClientHello spec 上。</answer_body>
Update with a data point that narrows the fix location:
- mihomo v1.19.30 connects successfully to the very same server (same VLESS+REALITY+Vision inbound, same test -> HTTP 204 through the tunnel), even though it pins the same
github.com/metacubex/utls v1.8.7. So the fork can produce an acceptable ClientHello; the gap is in how sing-box builds thechromehello (HelloChrome_Autocurrently lacks the X25519MLKEM768-first key share). - mihomo already handled the Xray ML-KEM change on their side (MetaCubeX/mihomo#2983 "feat: synchronize REALITY with Xray ML-KEM", which preserves X25519MLKEM768 in the ClientHello; related MetaCubeX/utls#4). That should be a usable reference for a sing-box-side fix.
- FYI: metacubex/utls has issues disabled, so this tracker is the right place to keep this visible.
Test setup: Xray-core v26.9.9 (52a412d) server, SNI www.gov.hk -> mihomo v1.19.30: HTTP 204; sing-box 1.12.25 / 1.14.0 / 1.15.0-alpha.2 / dev f6ce1d5: all reality verification failed. (Earlier reproduced the same way with SNI www.sonic.com on another server.)
Re-tested on 2026-09-19 — still unresolved:
- sing-box v1.14.1 (stable, go1.26.8) and v1.15.0-alpha.6: both still fail with
reality verification failedagainst an official Xray-core v26.9.9 (52a412d) REALITY+Vision server, same minimal config as in the original report. - sing-box v1.12.25: same failure (baseline).
- Positive control: Xray-core v26.9.9 client with the identical params connects fine (HTTP 204 through the tunnel), so the server was healthy throughout the test.
- Upstream status:
metacubex/utlsstill has no ML-KEM sync (latest commit 2026-07-26, v1.8.7); mihomo v1.19.30/1.19.31 continue to work against the same server. The dev (testing) branch of sing-box also still pinsmetacubex/utls v1.8.7.
So as of v1.14.1 / v1.15.0-alpha.6 there is no client-side fix yet; server operators who need sing-box clients remain pinned below Xray-core v26.9.8 (or on a build with the REALITY library rolled back).
Xray-ядра v26.9.9 > sing-box v1.14.1 REALITY+Vision =N/A
Confirmed with VLESS over gRPC + REALITY, empty service name and chrome fingerprint.
Standalone tests with sing-box 1.12.22:
- Xray 26.9.30:
reality verification failed. - Xray 26.6.27: HTTPS succeeds.
- An Xray 26.9.30 client connects successfully to the 26.9.30 server.
Replacing only the server’s Xray binary with 26.6.27, keeping 3x-ui 3.9.0 and connection settings unchanged, restored HTTPS through sing-box (HTTP 200; exit IP matched the server).
An isolated test also confirmed that minClientVer: "1.0.0" does not resolve this with 26.9.30.
Post-rollback operation on the original router has not yet been confirmed.
Root cause is on the sing-box side, not in the utls fork: the reality client strips X25519MLKEM768 from the ClientHello right before sending it.
common/tls/reality_client.go, RealityClientConfig.ClientHandshake filters the curve out of both SupportedCurvesExtension and KeyShareExtension (then rebuilds the handshake state) - added in dbdcce20a8, the "Update utls to v1.7.2" commit of 2025-05, when Chrome_131+ started shipping the PQ key share. HelloChrome_Auto in metacubex/utls v1.8.7 does define the share (HelloChrome_133, X25519MLKEM768 before X25519 in both supported_groups and key_shares); the sing-box filter removes it again.
Verified on loopback against an Xray-core server built from current main (26.9.30, xtls/reality@8cdf7bf9):
- xray client -> server: tunnel OK; server logs
hs.c.conn == conn: true; ClientHello capture: key_shares [(GREASE,1) (4588,1216) (29,32)] - sing-box (testing dfb80349b) -> server: fails; server logs
REALITY: processed invalid connection ... authentication failed or validation criteria not met; ClientHello capture: key_shares [(GREASE,1) (29,32)] - the 4588 (X25519MLKEM768) entry is gone
Plan: remove the filter (plus the now-redundant second BuildHandshakeState call) so each fingerprint emits its native key shares, matching what Xray and mihomo clients already send. Verification matrix before this is submitted: (a) Xray current: fixed; (b) Xray built with reality pinned to e1986a4d31ca (the pre-check control from this report): still connects - the old server takes the standalone X25519 share either way; (c) test/reality_test.go (sing-box -> sing-box) stays green. Branch: fix/reality-client-mlkem-keyshare.
If you would rather keep a compat path for old servers than drop the filter outright, say so and I will shape it that way. (Note: CreatePullRequest still returns permission denied for my account on this repository; if that persists I will deliver the verified branch on my fork plus the full test record in a follow-up comment.)
Implemented and verified: branch fix/reality-client-mlkem-keyshare on my fork, commit 87f2d718a (17 deletions in common/tls/reality_client.go - the MLKEM filter and the now-redundant second BuildHandshakeState call are gone).
https://github.com/thatssoheil/sing-box/tree/fix/reality-client-mlkem-keyshare
Verification record (loopback rig, no external endpoints; capture of the ClientHello on the wire):
- Xray-core 26.9.30 built from current main (xtls/reality@8cdf7bf9):
- before: server logs
REALITY: processed invalid connection ... authentication failed or validation criteria not met; captured key_shares[(GREASE,1) (29,32)]- no 4588 - after: tunnel up, server logs
hs.c.conn == conn: true; captured key_shares[(GREASE,1) (4588,1216) (29,32)]
- before: server logs
- Xray-core 26.6.27 (official release binary, pre-change): with the fix the tunnel still connects (
conn == conn: true) - no regression for older servers, they take the standalone X25519 share exactly as before. - sing-box -> sing-box (the REALITY server in this repo): still connects.
go vet -tags with_utls ./common/tls/clean, standard-tag build clean.
One related observation, deliberately NOT bundled into this change, in case it matters to you: the session-id auth still writes ClientVer [1,8,1]. Xray releases v26.7.11 through v26.9.x defaulted minClientVer to v26.3.27 and refuse sing-box for that reason alone - verified against the official v26.7.28 binary: ECDH and the session-id AEAD succeed, then conn == conn: false on the version comparison (the server even warns "default minimal client version is Xray-core v26.3.27" at startup). That behaviour is identical before and after this change, and since 26.9.8 the default is commented out (af7eb680), so current servers are not affected - it only bites deployments that pin an explicit minClientVer.
Since CreatePullRequest returns permission denied for my account on this repository, the fork branch above is the submission; a maintainer can open or apply it in one click. Happy to reshape if you would prefer keeping a fallback for older servers rather than dropping the filter outright.
Deleting the filter (thatssoheil/sing-box@87f2d718a) fixes chrome but regresses randomized: uTLS picks the X25519MLKEM768 group and share independently, so ~35% of seeds list the group without a share and ~15% send the share without the group. A target that prefers post-quantum key exchange (Go's crypto/tls since 1.24, OpenSSL 3.6) answers the first with a HelloRetryRequest that REALITY cannot relay, and the handshake fails against every server version. The second breaks RFC 8446 §4.2.8, and OpenSSL targets abort it with illegal_parameter.
iskhakovt/sing-box@dfd19d104fd1dbed9428694e166bf79283c73686, on stable, keeps X25519MLKEM768 only when the fingerprint sends both the group and a share, and strips it as before otherwise:
chromesends GREASE, X25519MLKEM768, X25519, as Chrome and Xray's chrome do, and connects to Xray-core ≥ v26.9.8.- The session ID is still sealed with the standalone X25519 share (
KeyShareKeys.Ecdhe), which every server version authenticates from. - Servers without X25519MLKEM768 support (Xray-core ≤ v25.4.30, sing-box ≤ 1.11) now fail with
chromeonce the target selects X25519MLKEM768, as Xray's own chrome client does. X25519-only targets still work. firefox,safari,edge,iosandqqhave no hybrid share in metacubex/utls v1.8.7 and still fail against v26.9.8+.randomizedworks there only for the ~35% of seeds that carry both.
Tested on loopback against Xray-core v25.4.30, v25.5.16, v26.3.27, v26.9.8 and v26.10.17, and sing-box 1.11.15, 1.12.0 and stable servers, each with a post-quantum and an X25519-only target:
Test matrix
VLESS + Vision + REALITY in front of a local TLS 1.3 target: Go defaults (prefers X25519MLKEM768) / X25519 only. ✓ means the tunnel carried a request.
| client | Xray 25.4.30 | 25.5.16 | 26.3.27 | 26.9.8 | 26.10.17 | sing-box 1.11.15 | 1.12.0 | stable |
|---|---|---|---|---|---|---|---|---|
stable, chrome |
✓/✓ | ✓/✓ | ✓/✓ | ✗/✗ | ✗/✗ | ✓/✓ | ✓/✓ | ✓/✓ |
| this commit, chrome | ✗/✓ | ✓/✓ | ✓/✓ | ✓/✓ | ✓/✓ | ✗/✓ | ✓/✓ | ✓/✓ |
| Xray 26.10.17, chrome | ✗/✓ | ✓/✓ | ✓/✓ | ✓/✓ | ✓/✓ | ✗/✓ | ✓/✓ | ✓/✓ |
stable and this commit, firefox / safari / ios / edge / qq |
✓/✓ | ✓/✓ | ✓/✓ | ✗/✗ | ✗/✗ | ✓/✓ | ✓/✓ | ✓/✓ |
randomized, 10 process starts per build. Columns are pass counts against Xray 25.5.16 and 26.3.27, sing-box 1.12.0, stable and this commit; against Xray 26.9.8 and 26.10.17; and against Xray 25.4.30 and sing-box 1.11.15:
| build | ClientHello | runs | PQ-capable, pre-26.9.8 | Xray ≥ 26.9.8 | no X25519MLKEM768 support |
|---|---|---|---|---|---|
stable |
stripped | 10 | 48/50 / 48/50 | 0/20 / 0/20 | 18/20 / 18/20 |
| this commit | stripped | 5 | 24/25 / 24/25 | 0/10 / 0/10 | 9/10 / 9/10 |
| this commit | group and share | 5 | 23/25 / 23/25 | 10/10 / 10/10 | 0/10 / 8/10 |
| filter deleted | group, no share | 5 | 0/25 / 23/25 | 0/10 / 0/10 | 0/10 / 8/10 |
| filter deleted | group and share | 2 | 10/10 / 10/10 | 4/4 / 4/4 | 0/4 / 4/4 |
| filter deleted | share, no group | 2 | 10/10 / 10/10 | 4/4 / 4/4 | 4/4 / 4/4 |
| filter deleted | neither | 1 | 5/5 / 5/5 | 0/2 / 0/2 | 2/2 / 2/2 |
Apart from the expected failures (stripped hellos against v26.9.8+, X25519MLKEM768 against servers that lack it) and the bold cell, every miss comes from sing-box 1.12.0 (first column) or Xray 25.4.30 (last column). Both reject some randomized ClientHellos on both targets, with stable as well.
Tests for both cases, kept off the fix commit: iskhakovt/sing-box@cc3478df6523c792987b274d92dd48ab04f19252 (fix-reality-mlkem-keyshare-tests).
Verified your analysis independently on this box with a different rig: loopback REALITY (Xray v26.3.27 built from source with Go 1.27.1) in front of a Go TLS destination whose defaults prefer X25519MLKEM768. No external endpoints. Clients: testing (filter present), my deleted-filter commit 87f2d718a, and your dfd19d10 built with -tags with_utls.
Randomized fingerprint, one fresh process start per run, against the PQ-preferring destination:
testing(stripped): 1/1 pass - control, the stripped hello never draws an HRR.- 87f2d718a (filter deleted): 3 pass / 5 fail over 8 starts. Every failure is
tls: CurvePreferences includes unsupported curve; the captured ClientHellos carry 4588 in supported_groups with key_shares[(29,32)]or[(29,32),(23,65)], and the server side logshs.c.conn == conn: truefollowed bytarget sent incorrect server hello or handshake incomplete- the group-without-share HRR path you described. - dfd19d10: 10/10 pass. Captured hellos are either
[4588,29,23,24,25]with[(4588,1216),(29,32)]or[29,23,24]with[(29,32)]- neither half is ever sent alone.
Against Xray 26.10.17 with chrome: testing fails (the original report), 87f2d718a passes, dfd19d10 passes.
So dfd19d10 is the correct shape. I am treating my branch as superseded by it, and the tests at cc3478df should travel with the fix - the group/share pairing is exactly the kind of invariant that regresses silently.
A local fix is ready, but this account cannot open a pull request on this repository (CreatePullRequest returns permission denied).
- Branch: https://github.com/Marco9442/sing-box/tree/fix/reality-mlkem-keyshare
- Compare: https://github.com/SagerNet/sing-box/compare/testing...Marco9442:sing-box:fix/reality-mlkem-keyshare
The change keeps X25519MLKEM768 only when the fingerprint sends both the group and the key share. An incomplete pair is still removed, so randomized does not advertise a group without a share. chrome keeps the hybrid share ahead of X25519. The session id is still sealed with the standalone X25519 share.
Local check:
go test -tags with_utls -count=1 -timeout 180s -run 'TestRealityClientHello' ./common/tls/
A maintainer can open the pull request from the compare link. I am not opening a second issue; this report already tracks the failure.
Verification note from a local patched build (stock fail / patched pass vs Xray 26.10.21; no regression vs 26.3.27). Proposed fix branch: https://github.com/mkd47/sing-box/tree/fix/reality-mlkem-keyshare — compare: https://github.com/SagerNet/sing-box/compare/testing...mkd47:fix/reality-mlkem-keyshare
Xray-core v26.10.21 Latest 已正式发布,期待支持X25519MLKEM768
Another data point, in case it helps prioritise the fix.
- Client: sing-box 1.14.1 (command line, macOS 27.0.1), uTLS fingerprint
firefox. - Provider: a commercial VLESS+REALITY service with four exits. Two of them (Berlin, Singapore) fail with
reality verification failedin a throwaway sing-box with a plain VLESS+REALITY outbound and no transport configured, so they fail at the REALITY step. The other two (Tallinn, New York) pass the REALITY handshake with the same client and settings; they then stop only because those exits expect XHTTP, which this test leaves out. - The same four exits all work through Xray-core (the provider's own client, and a local xray we run as a workaround).
- First seen 2026-09-17, still reproducible on 2026-10-30 (two runs today, same result).
I can't see the server's Xray version, but the split matches the X25519MLKEM768 key-share change described above. A merged fix along the lines of iskhakovt@dfd19d1 (keep the key share when the fingerprint sends the group) would close this on the REALITY side for us.
Confirmed an additional REALITY compatibility issue with explicit minClientVer on Windows.
I tested sing-box v1.14.4 (source commit c005f353) with VLESS + Vision + REALITY, using the chrome uTLS fingerprint.
Environment:
- Windows x64, Go 1.27.3
- Xray REALITY server managed through Remnawave
- Server configuration:
minClientVer: "1.8.2" - Both Mihomo 1.19.33 and Xray clients connect successfully using the same VLESS/REALITY parameters.
Results:
- Stock sing-box 1.14.4:
reality verification failed. - With
iskhakovt's patchdfd19d1: the error persisted. - Instrumented build:
X25519MLKEM768was present in both supported curves and key shares (curve=true,keyshare=true). - With the patch plus a temporary change to the REALITY client-version bytes from
[1,8,1]to[1,8,2]: the connection succeeded.
I subsequently built sing-box with the full Windows build tags, including with_gvisor, and confirmed successful HTTPS connectivity in both system-proxy and TUN modes. The observed VPN exit IP differed from the ISP address.
This suggests two separate compatibility considerations: ClientHello ML-KEM handling and the REALITY client-version check when the server explicitly sets minClientVer.
The version-byte modification is an experimental compatibility test, not a proposed production fix. It would be useful to have a proper upstream mechanism for handling REALITY client-version compatibility without hardcoding a misleading version.
Thanks to @iskhakovt for patch dfd19d1 and to the other contributors investigating this issue.
Additional downstream reproduction on 2026-11-13: Karing 1.2.26.2930, Android 16 / API 36 (ASUS ROG Phone 9 Pro, ARM64), against an Xray-core 26.11.9 REALITY server managed by 3x-ui 3.10.2.
Karing still reports reality verification failed; an HTTPS request through its SOCKS listener fails with curl exit 35 / HTTP 000 (~0.317 s). I also posted the current-version results in https://github.com/KaringX/karing/issues/1952#issuecomment-6850763645.
Checked configuration: VLESS/TCP/REALITY on port 443, fingerprint chrome; account UUID, public key, short ID and matching SNI/serverNames agree with the server. In this test, flow is absent on both ends, including the successful Xray control.
| Control | Result |
|---|---|
| Xray client with the current account/parameters, directly to VPN server | HTTP 204, 2/2 (~0.155/0.121 s) |
| Same Xray control through public TCP forwarding entry | HTTP 204, 2/2 (~0.460/0.459 s) |
| Same Android phone after switching back to Hysteria2/Gecko | HTTP 204 (~0.210 s) |
No server restart, key/configuration change, downgrade or certificate-verification bypass was performed during this comparison.
Scope/limits: Karing uses a modified sing-box core; I have not identified its exact upstream core commit, so this is not a claim of a fresh test of the latest standalone upstream release. The Xray control ran on the VPN server, not the phone (different network paths). The latest phone ClientHello was not captured/decoded, so this observation does not independently isolate missing ML-KEM key shares from other REALITY authentication/version checks discussed here.
Is there an upstream-supported compatibility setting or fix to verify for this scenario? Which non-sensitive runtime/version diagnostics would help distinguish the ClientHello/key-share condition from the separate REALITY client-version check?
No production addresses, UUIDs, keys, short IDs, subscription URLs/tokens or unrelated traffic logs are disclosed.
I would like to report a related connectivity regression associated with the removal of the X25519MLKEM768 filter in sing-box 1.14.5.
While this change addresses compatibility with newer Xray REALITY servers, it appears to cause significant connectivity issues on certain networks in Russia.
Environment
Desktop: Arch Linux, sing-box 1.14.4, Go 1.27.4, linux/amd64.
Mobile: Android, sing-box 1.14.5.
Protocol: VLESS + REALITY +
xtls-rprx-vision.Server: sing-box, not Xray.
Relay: Realm 2.9.6, plain TCP forwarding.
Both devices use essentially the same client configuration.
Network topology:
Client -> RU TCP relay (Realm) -> NL REALITY server (sing-box)Observed behavior
The desktop client using 1.14.4 works through the relay.
The Android client using 1.14.5 fails through the same relay.
The Android client can connect directly to the NL server.
When the Android client attempts to connect through the relay over Wi-Fi, connectivity through the relay also stops working on the desktop for approximately five minutes.
When the Android client uses a cellular network, its connection still fails, but the desktop remains unaffected.
Changing DNS settings does not resolve the issue when connecting through the relay.
Packet capture results
I captured TCP traffic on both sides of the relay using tcpdump and analyzed it using TShark.
Metric | 1.14.4 (Linux) | 1.14.5 (Android) -- | -- | -- ClientHello body length | 494–526 bytes | 1716–1812 bytes TCP MSS | 1460 | 1460 X25519 key share (29) | Present | Present X25519MLKEM768 key share (4588) | Absent in decoded handshakes | Present in decoded handshakes Incomplete ClientHello | None observed | 10 out of 12 connections TCP RST | None observed | None observedA representative failed Android connection:
TCP SYN-ACK: received
Initial TCP payload: 1448 bytes
TLS record payload: 1443 / 1752 bytes received
Declared ClientHello body length: 1748 bytes
ClientHello decoded: false
ServerHello decoded: false
Server payload: 0 bytesThe same incomplete TLS record was observed on both sides of the TCP relay. Realm forwarded all the initial data observed in the incoming connection.
Two out of twelve Android connections delivered a complete ClientHello and received a ServerHello.
The Linux capture contained two complete ClientHello/ServerHello exchanges and 38 connections without application payload.
Source code observations
In v1.14.4, common/tls/reality_client.go explicitly removes X25519MLKEM768 from both SupportedCurvesExtension and KeyShareExtension.
This filtering was removed in v1.14.5 and remains absent in v1.14.6. Both v1.14.5 and v1.14.6 also use github.com/metacubex/utls v1.9.0-alpha.1.
This is consistent with the significant increase in ClientHello size observed in the packet captures.
I suspect network-level filtering or interference with multi-segment TLS ClientHello messages. However, the captures alone do not establish the exact filtering mechanism or prove that ML-KEM itself is being specifically targeted.
The temporary disruption of other connections from the same public IP may indicate stateful network filtering.
A similar issue was previously reported in a sing-box fork:
https://github.com/Leadaxe/LxBox/issues/142
Feature request
I understand that retaining the hybrid key share is necessary for compatibility with newer Xray REALITY servers.
Would it be possible to make the REALITY key-share behavior configurable per outbound, while preserving the current behavior by default?
This could address compatibility with both newer Xray servers and networks where large TLS ClientHello messages experience connectivity issues.
Alternatively, is there already a supported configuration option that controls this behavior specifically for REALITY connections?
Limitations
v1.14.6 has been inspected at the source-code level but has not yet been tested on the affected network.
A controlled same-device comparison between 1.14.4 and 1.14.5 is still pending.
ServerHello reception alone does not establish successful REALITY authentication.
The exact network filtering mechanism remains unconfirmed.
I can provide additional packet capture summaries and controlled test results if needed.
Thank you!
Follow up: I downgraded the application on android to 1.14.4 and everything has started to work.
Update: regression confirmed on the same device
I downgraded the Android client from sing-box 1.14.5 to 1.14.4. Connectivity through the TCP relay was restored.
Test results:
- Linux 1.14.4: works.
- Android 1.14.4: works.
- Android 1.14.5: fails.
- Android 1.14.6: not tested yet.
This rules out Android-specific behavior as the sole cause and strongly supports the hypothesis that the regression is associated with the REALITY ClientHello changes introduced in 1.14.5.
Combined with the packet captures showing incomplete TLS records at exactly 1448 bytes in 10 out of 12 Android connections, this provides a strong case for making X25519MLKEM768 support configurable for REALITY outbounds.
The exact network-level filtering mechanism remains unconfirmed.
i have the same issue, as Anakael described, dpi in different locations block the connection for the whole ip, so multiple devices in lan are affected at once. as a temp solution i found, that changing fingerprint from "chrome" to "firefox" helps me