The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
fix(shared): T3 Connect no longer runs cloudflared releases that trust the compromised eMudhra intermediates (#26040)
Co-authored-by: maria-rcks <maria@kuuro.net> Co-authored-by: Julius Marminge <julius0216@outlook.com>
project516 committed
Nov 19, 2026 at 14:15 UTC
c3e82a93fe73ab571fb6d8f5bbfedbf5b4d2eaa2
3 files changed
+20
-15
docs/internals/t3-connect.md
+4
-2
@@ -197,8 +197,10 @@ The version comes from running `cloudflared version`, not from the folder name.
197
Connectors from before `--no-autoupdate` replaced themselves in place, so a
198
managed folder can hold another release. Such a binary still runs as a fallback
199
while the pin installs. Every binary needs `CLOUDFLARED_MIN_VERSION`, the oldest
200
-release that accepts every flag the connector is started with. Raise it whenever
201
-a new flag is added.
200
+release that accepts every flag the connector is started with and rejects the
201
+compromised eMudhra intermediates. No binary below it runs, even as a fallback,
202
+so a host without an eligible one stays off the relay until it has one. Raise it
203
+whenever a new flag or security fix needs it.
204
205
## OAuth traps
206
packages/shared/src/relayClient.test.ts
+14
-11
@@ -682,7 +682,7 @@ describe("RelayClient", () => {
682
),
683
);
684
685
- it.effect.skipIf(windowsHost)("skips a PATH binary older than the minimum version", () => {
685
+ it.effect.skipIf(windowsHost)("skips binaries older than the minimum version", () => {
686
const versions: Record<string, string> = {};
687
return run(
688
(baseDir) =>
@@ -691,8 +691,11 @@ describe("RelayClient", () => {
691
const newPath = `${baseDir}/new/cloudflared`;
692
yield* writeExecutable(oldPath);
693
yield* writeExecutable(newPath);
694
- versions[oldPath] = "2023.8.2";
695
- versions[newPath] = RelayClient.CLOUDFLARED_MIN_VERSION;
694
+ const managed = managedPathFor(baseDir, "2026.10.0");
695
+ yield* writeExecutable(managed);
696
+ versions[managed] = "2026.10.0";
697
+ versions[oldPath] = "2026.10.2";
698
+ versions[newPath] = "2026.10.3";
699
const manager = yield* RelayClient.makeCloudflaredRelayClient({ baseDir });
700
const env = { PATH: `${baseDir}/old:${baseDir}/new` };
701
expect(
@@ -721,7 +724,7 @@ describe("RelayClient", () => {
724
Effect.gen(function* () {
725
const overridePath = `${baseDir}/override/cloudflared`;
726
yield* writeExecutable(overridePath);
724
- versions[overridePath] = "2025.6.0";
727
+ versions[overridePath] = "2026.10.2";
728
const manager = yield* RelayClient.makeCloudflaredRelayClient({ baseDir });
729
const env = { PATH: "", T3CODE_CLOUDFLARED_PATH: overridePath };
730
const withEnv = Effect.provideService(
@@ -754,9 +757,9 @@ describe("RelayClient", () => {
757
const newerServer = managedPathFor(baseDir, "2099.1.0");
758
versions[newerServer] = "2099.1.0";
759
yield* writeExecutable(newerServer);
757
- versions[pathBinary] = "2026.9.3";
760
+ versions[pathBinary] = "2026.10.3";
761
versions[older] = "2025.9.0";
759
- versions[newer] = "2026.1.0";
762
+ versions[newer] = "2026.10.3";
763
yield* writeExecutable(pathBinary);
764
yield* writeExecutable(older);
765
yield* writeExecutable(newer);
@@ -769,7 +772,7 @@ describe("RelayClient", () => {
772
Effect.provideService(HostProcess.Environment, { PATH: `${baseDir}/bin` }),
773
);
774
772
- expect(yield* resolveWith).toMatchObject({ source: "managed", version: "2026.1.0" });
775
+ expect(yield* resolveWith).toMatchObject({ source: "managed", version: "2026.10.3" });
776
777
yield* writeExecutable(pinned);
778
expect(yield* resolveWith).toMatchObject({
@@ -784,11 +787,11 @@ describe("RelayClient", () => {
787
).toEqual(["2026.1.0", RelayClient.CLOUDFLARED_VERSION, "2099.1.0"]);
788
789
yield* fileSystem.remove(pinned);
787
- expect(yield* resolveWith).toMatchObject({ source: "managed", version: "2026.1.0" });
790
+ expect(yield* resolveWith).toMatchObject({ source: "managed", version: "2026.10.3" });
791
yield* fileSystem.remove(`${baseDir}/tools/cloudflared/2026.1.0`, {
792
recursive: true,
793
});
791
- expect(yield* resolveWith).toMatchObject({ source: "path", version: "2026.9.3" });
794
+ expect(yield* resolveWith).toMatchObject({ source: "path", version: "2026.10.3" });
795
}),
796
{ versions },
797
);
@@ -803,7 +806,7 @@ describe("RelayClient", () => {
806
(baseDir) =>
807
Effect.gen(function* () {
808
const pinned = managedPathFor(baseDir, RelayClient.CLOUDFLARED_VERSION);
806
- versions[pinned] = "2026.9.3";
809
+ versions[pinned] = "2026.10.3";
810
yield* writeExecutable(pinned);
811
const manager = yield* RelayClient.makeCloudflaredRelayClient({ baseDir });
812
const resolved = yield* manager.resolve;
@@ -811,7 +814,7 @@ describe("RelayClient", () => {
814
status: "available",
815
executablePath: pinned,
816
source: "managed",
814
- version: "2026.9.3",
817
+ version: "2026.10.3",
818
});
819
expect(
820
resolved.status === "available" && RelayClient.isPinnedManagedRelayClient(resolved),
packages/shared/src/relayClient.ts
+2
-2
@@ -29,8 +29,8 @@ import { isWindowsRenameLock } from "./atomicWrite.ts";
29
import * as HostProcess from "./HostProcess.ts";
30
31
export const CLOUDFLARED_VERSION = "2026.10.4";
32
-// Minimum for --output support; older connectors exit on that flag.
33
-export const CLOUDFLARED_MIN_VERSION = "2025.6.1";
32
+// Minimum for --output support and the eMudhra fix, which 2026.10.2 macOS builds lack.
33
+export const CLOUDFLARED_MIN_VERSION = "2026.10.3";
34
const CLOUDFLARED_PATH_ENV_NAME = "T3CODE_CLOUDFLARED_PATH";
35
36
const CLOUDFLARED_DOWNLOAD_TIMEOUT = "10 minutes";