The Wire · Showcase
PHOENIX LIVE VIEW PATCHES WEBSOCKET DOS WHILE ECTO FIXES RELATION TRACKING
By RepoJournal · Filed · About Elixir & Phoenix
Phoenix Live View shipped a critical websocket memory exhaustion fix in its dependency chain, while Ecto quietly resolved a data integrity bug in relationship change detection.
The ws library dependency jumped from 8.18.2 to 8.21.0 in Live View [1], patching a remote memory exhaustion DoS vulnerability that could be exploited through high volumes of tiny websocket fragments. This is the kind of fix that doesn't make noise but absolutely matters for production systems under load. Meanwhile, Ecto fixed a subtle but real bug where changed? would return incorrect results when removing one-to-one relationships [2], a data consistency issue that could silently corrupt your change tracking logic. On the Phoenix side, the team optimized URI scheme detection for paths starting with "/" [5], a small win that compounds across every LiveView request. Elsewhere, the Elixir core team continued CI hygiene with CodeQL action bumps [3][4] and removed a redundant nil check in Live View's child_diff handling [6], keeping the codebase lean.
Action items
- → Update Phoenix Live View to pull in ws 8.21.0 before next deploy phoenixframework/phoenix_live_view [immediate]
- → Pull Ecto fix for changed? on removed one relations if you use relationship mutations elixir-ecto/ecto [plan]
- → Monitor Phoenix Live View for any URI detection regressions in your path-heavy apps phoenixframework/phoenix_live_view [monitor]
References
- [1] Bump ws from 8.18.2 to 8.21.0 ↗ phoenixframework/phoenix_live_view
- [2] Fix changed? for removed one relations (#4754) elixir-ecto/ecto
- [3] Bump github/codeql-action/init from 4.36.2 to 4.36.3 ↗ elixir-lang/elixir
- [4] Bump github/codeql-action/analyze from 4.36.2 to 4.36.3 ↗ elixir-lang/elixir
- [5] Optimize URI scheme detection for paths ↗ phoenixframework/phoenix_live_view
- [6] Remove redundant nil check for child_diff (#4293) phoenixframework/phoenix_live_view