Vulnerability advisory

CVE-2026-32689

Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix

Published Updated OSV record ↗

Also known as EEF-CVE-2026-32689GHSA-628h-q48j-jr6q

Severity
  • CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/phoenixframework/phoenix ↗
2674c6ea30634667f9b09966b90269393b445953 to before 1a67c61ff9ce0a7711662ac7354861917a7c80f71a67c61ff9ce0a7711662ac7354861917a7c80f7
e702e9e38f9a85b6438663e3e57a876b08af79dd to before 7b9cb38d60d72e62797043a7c9cce264d5f3cc987b9cb38d60d72e62797043a7c9cce264d5f3cc98
f9d3c8b75a72fbcf5ce2765a3cdbc9c82ca80609 to before ddcdadb7de1132d630bbbe56f975e66f85f36416ddcdadb7de1132d630bbbe56f975e66f85f36416
Not specified912ea181fd247c21dbcc49fb97d0053b947d81bf
Also listed as affected (26)
  • v1.8.5
  • v1.8.4
  • v1.8.3
  • v1.8.2
  • v1.8.1
  • v1.8.0
  • v1.7.20
  • v1.7.19
  • v1.7.18
  • v1.7.16
  • v1.7.15
  • v1.7.14
  • v1.7.13
  • v1.7.12
  • v1.7.11
  • v1.7.10
  • v1.7.9
  • v1.7.8
  • v1.7.7
  • v1.7.6
  • v1.7.5
  • v1.7.4
  • v1.7.3
  • v1.7.2
  • v1.7.1
  • v1.7.0

Description

Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport's NDJSON body handling.

In 'Elixir.Phoenix.Transports.LongPoll':publish/4, when a POST request is received with Content-Type: application/x-ndjson, the request body is split on newline characters using String.split/2 with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries — a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by Enum.map, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.

A session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching Origin header, making this attack effectively unauthenticated.

This issue affects phoenix: from 1.7.0 before 1.7.22 and 1.8.6.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools