Improper Validation of Specified Quantity in Input Affecting phoenix package, versions >=1.2.0 <1.5.16>=1.6.0-rc.0 <1.6.18>=1.7.0-rc.0 <1.7.25>=1.8.0-rc.0 <1.8.17


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.81% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-HEX-PHOENIX-22743498
  • published23 Nov 2026
  • disclosed21 Nov 2026
  • creditPeter Ullrich

Introduced: 21 Nov 2026

NewCVE-2026-128361  (opens in a new tab)
CWE-1284  (opens in a new tab)

How to fix?

Upgrade phoenix to version 1.5.16, 1.6.18, 1.7.25, 1.8.17 or higher.

Overview

phoenix is a Phoenix is a web development framework written in Elixir which implements the server-side Model View Controller (MVC) pattern. Many of its components and concepts will seem familiar to those of us with experience in other web frameworks like Ruby on Rails or Python's Django.

Phoenix provides the best of both worlds - high developer productivity and high application performance. It also has some interesting new twists like channels for implementing realtime features and pre-compiled templates for blazing speed.

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via Phoenix.Presence.track/3,4, which accepts any term as the presence key. The key is not validated as a string at the point of tracking, and is only converted via to_string/1 later in Phoenix.Presence.group/1. Passing a non-string key such as a JSON object raises Protocol.UndefinedError in group/1, which runs whenever presences are listed and whenever a presence diff is broadcast. Once such a key is tracked, every process listing presences on the topic crashes. From version 1.7.0, the diff runs in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 has no clause for its failure, causing the shard to terminate and take down every channel and LiveView process tracked on it, erasing presence state for all its topics. Repeated joins exhaust the restart intensity and crash the application supervisor.

CVSS Base Scores

version 4.0
version 3.1