[GH-ISSUE #5634] [Bug]: Shadowsocks configs dont work on iphones since 3.4.0 #3925

Closed
opened 2026-10-31 20:35:56 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @TheAstro9aut on GitHub (Jun 28, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5634

Describe the bug

when i get the ss config from panel it's exported like ss:2022-blake3-aes-256-gcm:.....
where as in 3.3.1 and previous versions it was all encypted and worked fine.
the new version doesnt work in any iphone clients.

How to reproduce the problem

1.open clients page
2.export a user config attached to the shadowsocks inbound

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

Image

3x-ui version

3.4.4

Xray-core version

26.6.1

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.0.4

Which parts of the panel are affected?

Xray config generation

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 @TheAstro9aut on GitHub (Jun 28, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5634 ### Describe the bug when i get the ss config from panel it's exported like ss:2022-blake3-aes-256-gcm:..... where as in 3.3.1 and previous versions it was all encypted and worked fine. the new version doesnt work in any iphone clients. ### How to reproduce the problem 1.open clients page 2.export a user config attached to the shadowsocks inbound ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots <img width="1080" height="946" alt="Image" src="https://github.com/user-attachments/assets/b9551670-b702-483e-b4b3-d136a6a29503" /> ### 3x-ui version 3.4.4 ### Xray-core version 26.6.1 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.0.4 ### Which parts of the panel are affected? Xray config generation ### 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:35:56 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 28, 2026):

The link format for Shadowsocks 2022-blake3 ciphers changed deliberately in v3.4.0. In v3.3.1, the generated link was SIP002 format with base64-encoded userinfo:

ss://base64(2022-blake3-aes-256-gcm:serverKey:clientKey)@host:port

In v3.4.0, the format was corrected to SIP022, which explicitly forbids base64 userinfo for 2022-blake3 ciphers (see SIP022 spec and the earlier issue #5432):

ss://2022-blake3-aes-256-gcm:percent-encoded(serverKey):percent-encoded(clientKey)@host:port

This is confirmed in frontend/src/lib/xray/inbound-link.ts (lines 637–647) and internal/sub/service.go (lines 815–825). The panel's golden snapshots in frontend/src/test/__snapshots__/inbound-link.test.ts.snap show the current format:

ss://2022-blake3-aes-256-gcm:ZmFrZS1zZXJ2...%3D%3D:dGVzdC1jbGll...%3D%3D@example.test:8388?type=tcp

Whether your specific iOS clients fail to parse this is what needs to be diagnosed. Please provide:

  1. Which iOS client app(s) you tested (app name + version), e.g. Shadowrocket 2.2.x, Surge 5.x, Quantumult X, Hiddify, etc.
  2. Whether the issue is with the in-panel copy/QR link, or with the subscription URL, or both.
  3. The exact error your client shows when importing the link, if any.

Immediate workaround: if your iOS client does not support SIP022, switch the inbound cipher to a non-2022 method such as aes-256-gcm or chacha20-ietf-poly1305. Those ciphers continue to use SIP002 format (base64 userinfo), which is supported by every Shadowsocks client. The tradeoff is that these older AEAD ciphers do not provide the replay protection that 2022-blake3 does.

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

<!-- gh-comment-id:4826241635 --> @github-actions[bot] commented on GitHub (Jun 28, 2026): The link format for Shadowsocks 2022-blake3 ciphers changed deliberately in v3.4.0. In v3.3.1, the generated link was SIP002 format with base64-encoded userinfo: ``` ss://base64(2022-blake3-aes-256-gcm:serverKey:clientKey)@host:port ``` In v3.4.0, the format was corrected to SIP022, which explicitly forbids base64 userinfo for 2022-blake3 ciphers (see [SIP022 spec](https://github.com/shadowsocks/shadowsocks-org/issues/196) and the earlier issue #5432): ``` ss://2022-blake3-aes-256-gcm:percent-encoded(serverKey):percent-encoded(clientKey)@host:port ``` This is confirmed in `frontend/src/lib/xray/inbound-link.ts` (lines 637–647) and `internal/sub/service.go` (lines 815–825). The panel's golden snapshots in `frontend/src/test/__snapshots__/inbound-link.test.ts.snap` show the current format: ``` ss://2022-blake3-aes-256-gcm:ZmFrZS1zZXJ2...%3D%3D:dGVzdC1jbGll...%3D%3D@example.test:8388?type=tcp ``` Whether your specific iOS clients fail to parse this is what needs to be diagnosed. Please provide: 1. Which iOS client app(s) you tested (app name + version), e.g. Shadowrocket 2.2.x, Surge 5.x, Quantumult X, Hiddify, etc. 2. Whether the issue is with the in-panel copy/QR link, or with the subscription URL, or both. 3. The exact error your client shows when importing the link, if any. **Immediate workaround:** if your iOS client does not support SIP022, switch the inbound cipher to a non-2022 method such as `aes-256-gcm` or `chacha20-ietf-poly1305`. Those ciphers continue to use SIP002 format (base64 userinfo), which is supported by every Shadowsocks client. The tradeoff is that these older AEAD ciphers do not provide the replay protection that 2022-blake3 does. *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@mori-1997-mori2276-cmd commented on GitHub (Jun 29, 2026):

Hello,

I have the same issue with the Shadowsocks protocol on iPhone.

  • On V2Box (iOS), the configuration link cannot be imported at all.
  • On Shadowrocket, Streisand, and NPV Tunnel, the link can be imported, but it never connects.
  • However, if I import the same link into v2rayNG (Android) and then Export it, the exported "ss://" link changes to the old Base64 format.
  • After that, the exported link works perfectly on all iPhone clients (V2Box, Shadowrocket, Streisand, etc.).

This indicates that the server configuration is correct. The only difference is the generated "ss://" link format.

Also:

  • If I downgrade to 3.3.1, the iPhone issue disappears and everything works correctly.
  • However, version 3.3.1 has another problem: after renewing a user's account, the user does not work until Xray is restarted manually.
  • This renewal issue is fixed in 3.4.x, but now the new Shadowsocks links are incompatible with many iOS clients.

I believe there should be an option to generate the old Base64 (SIP002) Shadowsocks link for compatibility with existing iOS clients until they fully support the new SIP022 format.

<!-- gh-comment-id:4837134849 --> @mori-1997-mori2276-cmd commented on GitHub (Jun 29, 2026): Hello, I have the same issue with the Shadowsocks protocol on iPhone. - On V2Box (iOS), the configuration link cannot be imported at all. - On Shadowrocket, Streisand, and NPV Tunnel, the link can be imported, but it never connects. - However, if I import the same link into v2rayNG (Android) and then Export it, the exported "ss://" link changes to the old Base64 format. - After that, the exported link works perfectly on all iPhone clients (V2Box, Shadowrocket, Streisand, etc.). This indicates that the server configuration is correct. The only difference is the generated "ss://" link format. Also: - If I downgrade to 3.3.1, the iPhone issue disappears and everything works correctly. - However, version 3.3.1 has another problem: after renewing a user's account, the user does not work until Xray is restarted manually. - This renewal issue is fixed in 3.4.x, but now the new Shadowsocks links are incompatible with many iOS clients. I believe there should be an option to generate the old Base64 (SIP002) Shadowsocks link for compatibility with existing iOS clients until they fully support the new SIP022 format.
Author
Owner

@TheAstro9aut commented on GitHub (Jun 29, 2026):

My thoughts exactly this is an important issue

<!-- gh-comment-id:4838026618 --> @TheAstro9aut commented on GitHub (Jun 29, 2026): My thoughts exactly this is an important issue
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#3925
No description provided.