Skip to content

Releases

Viaalink ttyd v1.7.7-viaalink.3

Choose a tag to compare

@kwuite kwuite released this 03 Dec 00:22

Viaalink ttyd v1.7.7-viaalink.3

Verified static ttyd binaries built from viaalink/ttyd (viaalink branch, MIT license — based on upstream tsl0922/ttyd 1.7.7 by Shuanglei Tao).

  • ttyd --version: ttyd version 1.7.7-viaalink.3
  • Static dependencies: zlib 1.3.2, json-c 0.18, libuv 1.52.1, openssl 3.6.1, libwebsockets 4.5.7
  • Targets included: ttyd.x86_64 (Linux static musl), ttyd.aarch64 (Linux static musl), ttyd.win32.exe (Windows x64 static PE32+), SHA256SUMS.txt, SBOM.cdx.json (CycloneDX 1.5 with upstream pedigree), and MIT LICENSE.
  • macOS: Build-from-source script and guide included (docs/macos-build.md, upstream #1553); prebuilt macOS binaries are not yet shipped in this release.

Behaviour Changes (Read Before Upgrading from Stock 1.7.7)

  1. WebSocket message cap (1 MiB, #1593): Single WebSocket messages exceeding 1 MiB are now rejected with close status 1009 (MESSAGE_TOO_LARGE) to prevent unauthenticated OOM DoS.
  2. URL query option blocklist (#1605): Links can no longer force enableZmodem, enableTrzsz, enableSixel, disableLeaveAlert, disableReconnect, closeOnDisconnect, or titleFixed via URL query params (server-side -t options continue to work).
  3. Strict TLS upgrade enforcement (#1550): When --ssl is enabled, plaintext HTTP → WebSocket upgrades on the SSL port are rejected.
  4. Exact WebSocket path match (#1585/#1612): Only the exact configured <base-path>/ws endpoint is accepted (prefix/suffix paths such as /ws/ or /w are rejected).
  5. Pre-auth silence (#1599 + #1580): With -c user:pass, unauthenticated WebSocket connections receive zero initial metadata until authenticated; Safari/WebKit token-based auth works without an Authorization header while malformed/wrong headers are rejected at handshake.

New in v1.7.7-viaalink.3 (Since v1.7.7-viaalink.2)

  • #1615 (@AlekZo, viaalink/ttyd#70) — Skip unused libwebsockets system state (LWS_SERVER_OPTION_NO_LWS_SYSTEM_STATES), stopping periodic captive-portal probe log spam.
  • #1589 (@daeho-ro, viaalink/ttyd#71) — Run uv_run() directly for libwebsockets 5.1+ compatibility (stays 100% compatible with 4.5.7).
  • #1560 (@ViktorBarzin, viaalink/ttyd#72) — Forward validated client pixel dimensions (ws_xpixel/ws_ypixel) on terminal resize with strict json_type_int + [0, UINT16_MAX] bounds checking.
  • #1529 + #1558 (@sdirkwinkel, @xiaocheng2014, viaalink/ttyd#73) — Recover cleanly from transient UV_EIO after login(1) vhangup() with bounded exponential backoff.
  • #1525 + #1488 (@jvobsd, @Umair-khurshid, viaalink/ttyd#74) — Distro install & Fedora build-from-source documentation (fixed pacman -S & dependencies).
  • #1553 (@ofcRS, viaalink/ttyd#75) — Hardened native macOS build script, guide (docs/macos-build.md), and manual workflow.
  • #1520 (@aaradhyaberisfdc, viaalink/ttyd#76) — Suppress browser context menu during mouse tracking (with Shift bypass, preserving vim/htop/mc mouse support).
  • 66 / 66 Upstream PR Audit Ledger (viaalink/ttyd#77, docs/UPSTREAM_PR_LEDGER.md) — Complete triad audit (Antigravity + Claude Code + Mistral Vibe) with verbatim review logs.
  • Release & build engineering:
    • ttyd --version now prints the full 1.7.7-viaalink.3 version string (verified in CI on x86_64, aarch64 via QEMU, and win32 via Wine).
    • scripts/cross-build.sh: OpenSSL no-shared no-tests no-apps no-docs + build_libs/install_dev cuts cold win32 build time from ~22 min to ~1–3 min, plus CI stage caching.
    • Published CycloneDX 1.5 SBOM (SBOM.cdx.json) with upstream 1.7.7 pedigree and patched PR list.
    • Automated RED → GREEN differential proof comparing stock v1.7.7-viaalink.1 against v1.7.7-viaalink.3 (docs/RED_GREEN_PROOF.md).

Previously Included in Wave 1 & Wave 2 (v1.7.7-viaalink.2)

  • Wave 1 (19 security & stability PRs): #1599 + #1580 (WS auth/pre-auth leak + Safari token auth), #1607 (Windows --url-arg buffer overflow), #1600 (--uid primary GID derivation), #1611 (stop logging credentials at startup), #1605 (URL param security blocklist), #1593 (1 MiB WS cap + 0-len fragment crash, supersedes #1544/#1574), #1550 (reject plaintext upgrade under SSL), #1545 (parse_window_size NULL guard), #1585 (exact WS path + pss->args free, supersedes #1612), #1610 (-F/--deny-framing), #1609 + #1592 (IPv6 bracketed hosts + HTTP/2 :authority origin check), #1613 (HEAD empty body), #1598 (PTY read backpressure), #1573 (EAGAIN stall fix), #1576 (musl argv NULL-term segfault), #1584 (mTLS preverify_ok), #1602 (HTTP header pool 128).
  • Wave 2 (10 frontend, mobile & clipboard PRs): #1597 (iOS safe-area & 16px helper textarea), #1531 (visualViewport mobile keyboard sync), #1595/#1561/#1530 (float URL parsing + post-preferences/renderer refit), #1606 (cancellable ZMODEM modal + 256/512 MiB caps), #1518/#1549/#1565 (modern OSC 52 UTF-8 clipboard incl. tmux), #1536 (exponential-backoff + tab-wake auto-reconnect), webpack 5.113.0 (0 moderate+ audit advisories).

Verification

Verify downloaded binaries against SHA256SUMS.txt:

sha256sum -c SHA256SUMS.txt
  • Automated battle-test suite (tests/battle_test.py, 18 tests) passed on x86_64 and aarch64 (QEMU), plus Wine version + HTTP/security smoke test on win32.
  • Full baseline-vs-candidate RED → GREEN differential proof recorded in docs/RED_GREEN_PROOF.md.

Viaalink ttyd v1.7.7-viaalink.2

Choose a tag to compare

@kwuite kwuite released this 02 Dec 02:20

Viaalink verified static ttyd build v1.7.7-viaalink.2 (commit f8e1566, MIT license — upstream tsl0922/ttyd by Shuanglei Tao).

Included Upstream Security & Stability PRs (Wave 1)

  • #1599 (@dem0ns) — WebSocket auth state hardening, pre-auth leak prevention, dynamic auth header sizing
  • #1580 (@wang-chuanhui) — Allow token-based WebSocket auth when Basic header is absent (Safari/WebKit #1437/#1578), hardened on top of #1599
  • #1607 (@dem0ns) — Dynamic Windows --url-arg command-line sizing (prevents remote buffer overflow)
  • #1600 (@dem0ns) — Derive primary GID when --uid is specified without --gid (fails closed)
  • #1611 (@josegonzalez) — Stop logging Base64 credential at startup
  • #1605 (@dem0ns) — Block URL query params from enabling file transfer / suppressing security UI (rebuilt src/html.h)
  • #1593 (@chrysent; supersedes #1544/#1574) — Cap WebSocket message size (1 MiB, close 1009) & ignore zero-length fragments
  • #1550 (@someonegg) — Reject plaintext HTTP upgrades when SSL is enabled
  • #1545 (@Cherrling) — Guard NULL dereference in parse_window_size on invalid JSON
  • #1585 (@someonegg; supersedes #1612) — Exact WebSocket path match + free pss->args URL argument arrays
  • #1610 (@josegonzalez) — Opt-in -F, --deny-framing clickjacking protection headers
  • #1609 (@josegonzalez) & #1592 (@chrysent) — Bracketed IPv6 hosts & HTTP/2 :authority fallback in origin check
  • #1613 (@jlu-lujing) — Omit HTTP response body for HEAD requests
  • #1598 (@dem0ns) — Prevent PTY read resume while chunk is pending
  • #1573 (@moodboom) — Restart PTY read after zero-byte EAGAIN instead of stalling forever
  • #1576 (@arnaldo-delisio) — NULL-terminate argv_copy in calc_command_start (fixes musl segfault)
  • #1584 (@someonegg) — Use preverify_ok for OpenSSL mTLS client cert verification
  • #1602 (@dem0ns) — Raise HTTP header pool to 128 and shorten idle timeout to 5s

Included Upstream Frontend, Mobile & Clipboard PRs (Wave 2)

  • #1597 (@dem0ns) — iOS viewport-fit=cover, safe-area insets (box-sizing: border-box), and 16px helper textarea (prevents iOS focus zoom)
  • #1531 (@someonegg) — window.visualViewport mobile soft-keyboard resize/scroll sync, theme background sync, and touch scrolling
  • #1595 (@neilbrookins), #1561 (@jolly-exe) & #1530 (@someonegg) — Float URL query parsing (parseFloat), post-preferences refit, and post-renderer onRender refit
  • #1606 (@dem0ns) — Cancellable ZMODEM upload modal (Esc/backdrop/×) and explicit download confirmation with 256/512 MiB size caps
  • #1518 (@aaradhyaberisfdc), #1549 (@themoonisacheese, clipboard commit only) & #1565 (@mdj2812) — Modern navigator.clipboard + UTF-8-safe fallback supporting all OSC 52 selection types (including tmux p)
  • #1536 (@hndrewaall) — Exponential backoff (1s–30s) + visibilitychange tab-wake auto-reconnect (hardened to skip close codes 1000/1008/1009 and keep wake listener alive across closes)
  • Frontend bundler/devDependency CVE remediation (webpack 5.113.0, 0 moderate+ advisories in yarn npm audit, cleanly regenerated src/html.h)

Verification

  • All 17 automated security, Wave 2 frontend, Viaalink CLI compatibility, 2x50 concurrent session stress, and 50k-line flood backpressure tests passed (tests/battle_test.py).

  • Verify downloads with sha256sum -c SHA256SUMS.txt.

  • Cross-target verified: x86_64 native musl (17/17), aarch64 QEMU user-mode (17/17), win32 Wine smoke test, standalone Playwright visual suite across Chromium/WebKit/iPhone/Pixel (30/30), ASan+UBSan (17/17), libFuzzer (0 crashes), cppcheck (0 errors), CodeQL (C + JS/TS).

Viaalink ttyd v1.7.7-viaalink.1

Choose a tag to compare

@kwuite kwuite released this 01 Dec 03:39

Verified static ttyd baseline build from upstream tsl0922/ttyd@2922cb8 (24 unreleased commits ahead of 1.7.7: OpenSSL 3.6.1, zlib 1.3.2, libuv 1.52.1, libwebsockets 4.5.7, xterm 5.5.0, shell-injection fix #1498, mobile viewport #1564). MIT licensed. Verify with sha256sum -c SHA256SUMS.txt.