[GH-ISSUE #7034] [Bug]: Adding security settings issues in inbound, generating x25519 (native), and the client won't generate a VLESS protocol QR code. #6599

Open
opened 2026-11-07 14:33:25 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Heiyukeji on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/7034

Describe the bug

In the 'Add Inbound' section of the 3xui panel, when Agreement generates x25519 (native), the client won't generate a VLESS protocol QR code—there's only the subscription information and VLESS link, but no VLESS QR code. I'm not exactly sure where in your code this happens, so please check it yourself.

How to reproduce the problem

In the 'Add Inbound' section of the 3xui panel, if the Agreement generates x25519 (native), the client's VLESS protocol QR code will disappear, leaving only the VLESS import link.

Expected behavior

Normally there should be a QR code. As long as I clear the x25519 (native) generated in the Agreement, the QR code will appear.

Actual behavior

If x25519 (native) is generated in Agreement, the VLESS protocol QR code in the client will disappear. If it's not generated, the QR code will appear again.

Relevant logs


Screenshots

3x-ui version

all

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

ubuntu22.04全版本

Which parts of the panel are affected?

No response

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 @Heiyukeji on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/7034 ### Describe the bug In the 'Add Inbound' section of the 3xui panel, when Agreement generates x25519 (native), the client won't generate a VLESS protocol QR code—there's only the subscription information and VLESS link, but no VLESS QR code. I'm not exactly sure where in your code this happens, so please check it yourself. ### How to reproduce the problem In the 'Add Inbound' section of the 3xui panel, if the Agreement generates x25519 (native), the client's VLESS protocol QR code will disappear, leaving only the VLESS import link. ### Expected behavior Normally there should be a QR code. As long as I clear the x25519 (native) generated in the Agreement, the QR code will appear. ### Actual behavior If x25519 (native) is generated in Agreement, the VLESS protocol QR code in the client will disappear. If it's not generated, the QR code will appear again. ### Relevant logs ```shell ``` ### Screenshots <!-- Failed to upload "QQ_1793446658248.png" --> ### 3x-ui version all ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system ubuntu22.04全版本 ### Which parts of the panel are affected? _No response_ ### 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).
Author
Owner

@DoctorGuidance commented on GitHub (Nov 2, 2026):

Hi @Heiyukeji, I traced the issue and submitted PR #7049 to resolve it.

Root cause:
The frontend QR modal gates QR code display using isPostQuantumLink(link) to avoid generating unreadable QR grids for massive post-quantum key payloads (like ML-KEM-768 with ~1580-byte keys or ML-DSA-65 with ~2600-byte keys). However, standard X25519 VLESS links are only ~300 bytes and easily fit inside standard QR Level L capacity (up to 2953 bytes).

In PR #7049:

  1. Added an explicit physical QR capacity guard (link.length <= 1000 is always safe for standard QR codes).
  2. Added defensive verification for pqv payloads (length > 300) so boolean flags or short query params do not cause false positives.
  3. Explicitly allowed all X25519 auth kinds (native, xorpub, random).

Your VLESS QR code will now render normally alongside the subscription and copy link.

<!-- gh-comment-id:6566568015 --> @DoctorGuidance commented on GitHub (Nov 2, 2026): Hi @Heiyukeji, I traced the issue and submitted PR #7049 to resolve it. **Root cause:** The frontend QR modal gates QR code display using `isPostQuantumLink(link)` to avoid generating unreadable QR grids for massive post-quantum key payloads (like ML-KEM-768 with ~1580-byte keys or ML-DSA-65 with ~2600-byte keys). However, standard X25519 VLESS links are only ~300 bytes and easily fit inside standard QR Level L capacity (up to 2953 bytes). In PR #7049: 1. Added an explicit physical QR capacity guard (`link.length <= 1000` is always safe for standard QR codes). 2. Added defensive verification for `pqv` payloads (`length > 300`) so boolean flags or short query params do not cause false positives. 3. Explicitly allowed all X25519 auth kinds (`native`, `xorpub`, `random`). Your VLESS QR code will now render normally alongside the subscription and copy link.
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#6599
No description provided.