[GH-ISSUE #5943] [Bug]: REALITY + xtls-rprx-vision "authentication failed" on xray-core v26.7.11 (works on v26.6.27) #4117

Closed
opened 2026-10-31 20:37:18 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @mraliien on GitHub (Jul 13, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5943

Describe the bug

After upgrading 3x-ui to v3.5.0 (bundled xray-core v26.7.11), all VLESS + REALITY
inbounds using xtls-rprx-vision flow stopped accepting genuine client connections
across multiple servers (tested on AWS Lightsail, Ubuntu 24). Plain VLESS+TCP+TLS
inbounds (no REALITY) on the same panel continued to work normally.

Downgrading xray-core from v26.7.11 to v26.6.27 (via panel's Xray Core Management)
immediately fixed the issue with zero config changes — same inbound, same keys,
same client link.

This looks related to #4980 ("VLESS + Reality TCP handshake drops after xray
26.6.1 update"), though the failure mode differs slightly (explicit
"authentication failed" rejection here vs. silent TCP drop there). Possibly the
same underlying REALITY regression persisting/regressing again across xray-core
v26.6.x–v26.7.x versions.

How to reproduce the problem

  1. Run 3x-ui v3.5.0 with bundled xray-core v26.7.11
  2. Create a VLESS inbound with security: reality, flow: xtls-rprx-vision
  3. Generate client link (vless://) from the panel and import into any REALITY-
    capable client (Hiddify, v2rayNG, NekoBox)
  4. Attempt to connect
  5. Connection times out on the client; server log shows repeated
    "authentication failed or validation criteria not met"
  6. Downgrade xray-core to v26.6.27 via panel, restart — connection succeeds
    immediately with the same client config

Expected behavior

REALITY + xtls-rprx-vision inbound should authenticate genuine clients normally,
as it did before the xray-core v26.7.11 upgrade.

Actual behavior

Genuine client connections are rejected. Confirmed this is NOT a config issue:

  • Regenerated REALITY key pair (Private/Public Key) — no change
  • Regenerated mldsa65 Seed/Verify (ML-DSA-65 post-quantum fields) — no change
  • Verified client's shared vless:// link matches server config exactly
    (pbk, sid, sni, fp, pqv all matched byte-for-byte)
  • Verified firewall/Security Group allows the port — raw TCP reaches the server
  • Verified client device time was automatic/network-synced (ruled out clock skew)
  • Tested with three different clients: Hiddify, v2rayNG, NekoBox — same failure
    on all three
  • Confirmed the running config.json had the correct, freshly-regenerated
    privateKey (ruled out hot-reload not applying changes)

Relevant logs

transport/internet/tcp: REALITY: processed invalid connection from <client_ip>: authentication failed or validation criteria not met

2026/07/13 16:32:01.336433 [Info] transport/internet/tcp: REALITY: processed invalid connection from <client_ip>:28096: authentication failed or validation criteria not met
2026/07/13 16:32:57.815904 [Info] transport/internet/tcp: REALITY: processed invalid connection from <client_ip>:28155: authentication failed or validation criteria not met
2026/07/13 16:33:18.773340 [Info] transport/internet/tcp: REALITY: processed invalid connection from <client_ip>:28186: authentication failed or validation criteria not met

Screenshots

No response

3x-ui version

v3.5.0

Xray-core version

Broken: v26.7.11 Works: v26.6.27

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24 (AWS Lightsail)

Which parts of the panel are affected?

Xray config generation, Other

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @mraliien on GitHub (Jul 13, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5943 ### Describe the bug After upgrading 3x-ui to v3.5.0 (bundled xray-core v26.7.11), all VLESS + REALITY inbounds using xtls-rprx-vision flow stopped accepting genuine client connections across multiple servers (tested on AWS Lightsail, Ubuntu 24). Plain VLESS+TCP+TLS inbounds (no REALITY) on the same panel continued to work normally. Downgrading xray-core from v26.7.11 to v26.6.27 (via panel's Xray Core Management) immediately fixed the issue with zero config changes — same inbound, same keys, same client link. This looks related to #4980 ("VLESS + Reality TCP handshake drops after xray 26.6.1 update"), though the failure mode differs slightly (explicit "authentication failed" rejection here vs. silent TCP drop there). Possibly the same underlying REALITY regression persisting/regressing again across xray-core v26.6.x–v26.7.x versions. ### How to reproduce the problem 1. Run 3x-ui v3.5.0 with bundled xray-core v26.7.11 2. Create a VLESS inbound with security: reality, flow: xtls-rprx-vision 3. Generate client link (vless://) from the panel and import into any REALITY- capable client (Hiddify, v2rayNG, NekoBox) 4. Attempt to connect 5. Connection times out on the client; server log shows repeated "authentication failed or validation criteria not met" 6. Downgrade xray-core to v26.6.27 via panel, restart — connection succeeds immediately with the same client config ### Expected behavior REALITY + xtls-rprx-vision inbound should authenticate genuine clients normally, as it did before the xray-core v26.7.11 upgrade. ### Actual behavior Genuine client connections are rejected. Confirmed this is NOT a config issue: - Regenerated REALITY key pair (Private/Public Key) — no change - Regenerated mldsa65 Seed/Verify (ML-DSA-65 post-quantum fields) — no change - Verified client's shared vless:// link matches server config exactly (pbk, sid, sni, fp, pqv all matched byte-for-byte) - Verified firewall/Security Group allows the port — raw TCP reaches the server - Verified client device time was automatic/network-synced (ruled out clock skew) - Tested with three different clients: Hiddify, v2rayNG, NekoBox — same failure on all three - Confirmed the running config.json had the correct, freshly-regenerated privateKey (ruled out hot-reload not applying changes) ### Relevant logs ```shell transport/internet/tcp: REALITY: processed invalid connection from <client_ip>: authentication failed or validation criteria not met 2026/07/13 16:32:01.336433 [Info] transport/internet/tcp: REALITY: processed invalid connection from <client_ip>:28096: authentication failed or validation criteria not met 2026/07/13 16:32:57.815904 [Info] transport/internet/tcp: REALITY: processed invalid connection from <client_ip>:28155: authentication failed or validation criteria not met 2026/07/13 16:33:18.773340 [Info] transport/internet/tcp: REALITY: processed invalid connection from <client_ip>:28186: authentication failed or validation criteria not met ``` ### Screenshots _No response_ ### 3x-ui version v3.5.0 ### Xray-core version Broken: v26.7.11 Works: v26.6.27 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24 (AWS Lightsail) ### Which parts of the panel are affected? Xray config generation, Other ### Browser (only if it is a UI bug) No response ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:37:18 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 13, 2026):

This is the same root cause as #5922: xray-core v26.7.11 added a hardcoded default minClientVer: 26.3.27 for REALITY whenever the field is left unset in the inbound config. Previously an unset field meant "accept any client core version"; now any client reporting a core version below 26.3.27 fails REALITY's handshake validation and is rejected.

Independently confirmed from source, beyond what's already in #5922:

  • The default was introduced in xray-core commit af7eb680 ("REALITY server: Set default minClientVer: 26.3.27"), landed 2026-07-11T14:30:54Z — one commit before the v26.7.11 tag itself. This panel's go.mod for v3.5.0 pins github.com/xtls/xray-core at pseudo-version ...-20260711155151-50231eaff98c, i.e. exactly the v26.7.11 tag commit, so v3.5.0 does bundle this change.
  • The actual comparison lives in the separate github.com/xtls/reality module, in tls.go's handshake validation: hs.c.conn is only marked authenticated if the auth-digest check and ClientVer >= MinClientVer and the max-version/time-skew/short-ID checks all pass. If any one fails, the connection falls into the branch that produces exactly the message you posted: "REALITY: processed invalid connection from %s: authentication failed or validation criteria not met" — this is one shared message for the whole check, not a distinct "auth failed" error, so it does not point to your keys, mldsa65 fields, or client config being wrong (consistent with your own testing).
  • That github.com/xtls/reality dependency version is byte-identical between v26.6.27 and v26.7.11 (same pinned commit in both go.mods) — the only relevant change is the new default itself, confirming the version bump is the sole cause and explaining why the same client links work again on v26.6.27 with zero config changes.
  • It applies to any transport paired with REALITY (raw TCP + Vision included, not just XHTTP), which is why Hiddify, v2rayNG, and NekoBox all fail the same way: none of their currently bundled cores report a version ≥ 26.3.27 yet.

Immediate fix, no core downgrade required: in the inbound's Security → REALITY settings, set Min Client Ver to a low value such as 1.0.0 (or 0), then restart Xray. This restores the old "accept any version" behavior and has been confirmed working by multiple reporters on #5922.

Closing as a duplicate of #5922, where this is already tracked with the same fix. Please continue any further discussion there.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4960677709 --> @github-actions[bot] commented on GitHub (Jul 13, 2026): This is the same root cause as #5922: xray-core v26.7.11 added a hardcoded default `minClientVer: 26.3.27` for REALITY whenever the field is left unset in the inbound config. Previously an unset field meant "accept any client core version"; now any client reporting a core version below `26.3.27` fails REALITY's handshake validation and is rejected. Independently confirmed from source, beyond what's already in #5922: - The default was introduced in xray-core commit [`af7eb680`](https://github.com/XTLS/Xray-core/commit/af7eb68028732a8ee3c0e5d6ab2b8a657bb2e770) ("REALITY server: Set default `minClientVer: 26.3.27`"), landed 2026-07-11T14:30:54Z — one commit before the `v26.7.11` tag itself. This panel's `go.mod` for v3.5.0 pins `github.com/xtls/xray-core` at pseudo-version `...-20260711155151-50231eaff98c`, i.e. exactly the `v26.7.11` tag commit, so v3.5.0 does bundle this change. - The actual comparison lives in the separate `github.com/xtls/reality` module, in `tls.go`'s handshake validation: `hs.c.conn` is only marked authenticated if the auth-digest check **and** `ClientVer >= MinClientVer` **and** the max-version/time-skew/short-ID checks all pass. If any one fails, the connection falls into the branch that produces exactly the message you posted: `"REALITY: processed invalid connection from %s: authentication failed or validation criteria not met"` — this is one shared message for the whole check, not a distinct "auth failed" error, so it does not point to your keys, `mldsa65` fields, or client config being wrong (consistent with your own testing). - That `github.com/xtls/reality` dependency version is byte-identical between v26.6.27 and v26.7.11 (same pinned commit in both `go.mod`s) — the only relevant change is the new default itself, confirming the version bump is the sole cause and explaining why the same client links work again on v26.6.27 with zero config changes. - It applies to any transport paired with REALITY (raw TCP + Vision included, not just XHTTP), which is why Hiddify, v2rayNG, and NekoBox all fail the same way: none of their currently bundled cores report a version ≥ `26.3.27` yet. Immediate fix, no core downgrade required: in the inbound's Security → REALITY settings, set **Min Client Ver** to a low value such as `1.0.0` (or `0`), then restart Xray. This restores the old "accept any version" behavior and has been confirmed working by multiple reporters on #5922. Closing as a duplicate of #5922, where this is already tracked with the same fix. Please continue any further discussion there. *This reply was generated automatically; a maintainer may follow up.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4117
No description provided.