Skip to main content

Phoenix 1.8.17

Release Date: November 20, 2026

Phoenix 1.8.17 arrived on November 20, 2026 and it is a patch release with two security advisories attached. For teams running Phoenix channels in production, the headline is simple: two CVEs are fixed, and both are remotely reachable over the socket layer that most Phoenix apps expose by default.

The release sits at the tail of a steady 1.8 line. Since 1.8.12 shipped in August, the framework has moved through 1.8.13, 1.8.14, 1.8.15, and 1.8.16 on a roughly monthly cadence, each one a maintenance drop. Version 1.8.17 is the first in that sequence to include security advisories, which makes it the most important patch of the autumn.

The two security fixes

Both advisories were published alongside the release and apply to the Channels layer rather than to controllers or templates.

  • CVE-2026-129344: sending a channel message that cannot be serialized could lead to a denial of service for every client subscribed to a shared topic. The practical risk is a single crafted payload knocking out an entire topic rather than one socket.
  • CVE-2026-128361: an unsanitized presence key could crash the Presence tracker. Presence tracking backs the classic "who is online" feature, so any app using Phoenix.Presence with user-supplied keys should treat this as urgent.

Neither issue requires an authenticated session in the ordinary sense. If your endpoint accepts socket connections from the public internet, assume the code paths are exposed and upgrade before the next deploy window closes.

Bug fixes in the socket layer

Two fixes in 1.8.17 also touch Socket and PubSub behavior, and both address edge cases that surface under load or during restarts.

  • PubSub endpoint broadcasts now work even when the endpoint is not started, which removes a failure mode during supervised restarts and test setups where the endpoint struct exists before the supervision tree has fully booted.
  • The JavaScript client sends its fallback health check before a buffered join, so a reconnecting socket no longer queues the join behind a health check that has not yet resolved.

Enhancements worth noting

  • reconnectWhenHidden lets you opt in to reconnection attempts while a browser tab is hidden. Historically the client waited for visibility, which kept idle tabs quiet but delayed recovery for dashboards left in a background tab.
  • Fastlane messages on channels are now sent as shared binaries, trimming allocation overhead on the hot path used by Phoenix.Channel fastlane pushes.
  • Verified route warnings are stored relative to the current working directory, which makes the warning output readable in umbrella projects and monorepos.
  • The LongPoll transport accepts binary messages, bringing it in line with WebSocket behavior for binary payloads.

Upgrading from 1.8.12 or earlier

There are no deprecations or configuration changes in this patch, so the upgrade path is mechanical:

  • Bump {:phoenix, "~> 1.8.17"} in mix.exs and run mix deps.update phoenix.
  • Rebuild your asset bundle so phoenix.js picks up the health check ordering fix and the new reconnectWhenHidden option.
  • Audit any place where client-supplied data reaches a presence key, and confirm you are now on a version that guards it.
  • Re-run mix test and exercise a channel reconnect scenario, since the fallback health check change affects clients behind flaky networks.

Phoenix 1.8.17 is available on Hex now. Given the two advisories, the honest recommendation is to treat it as a security release rather than a routine patch, and to move it into the current sprint instead of the next one.

Other Versions

We use cookies for ads and analytics.