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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.58% (percentile 41, 2026-11-26)
- **CWE:** CWE-770
- **Published:** 2026-05-05T15:17:30.664Z
- **Modified:** 2026-11-20T06:17:25.863Z

## Who should check

- Anyone running phoenixframework phoenix \>= 1.7.0, \< 1.7.22; \>= 1.8.0-rc.0, \< 1.8.6
- Anyone running phoenixframework phoenix \>= 2674c6ea30634667f9b09966b90269393b445953, \< \*

## 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 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 from 1.8.0-rc.0 before 1.8.6.

## Affected and fixed versions

- phoenixframework phoenix: \>= 1.7.0, \< 1.7.22; \>= 1.8.0-rc.0, \< 1.8.6 (cvelist)
- phoenixframework phoenix: \>= 2674c6ea30634667f9b09966b90269393b445953, \< \* (cvelist)

## Mitigation

- Upgrade phoenix to 1.8.6 or later.
- Vendor workaround: Disable the longpoll transport on all Phoenix.Socket declarations, including the LiveView /live socket, by removing or setting longpoll: false. Note that this prevents clients that cannot use WebSockets from connecting.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-32689. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-32689.md
Affected: phoenixframework phoenix >= 1.7.0, < 1.7.22; >= 1.8.0-rc.0, < 1.8.6; phoenixframework phoenix >= 2674c6ea30634667f9b09966b90269393b445953, < *
Fixed in: phoenixframework phoenix 1.7.22, phoenixframework phoenix 1.8.6

Steps:
1. Search this machine and project for phoenixframework phoenix: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-32689 being exploited?

There is no confirmed exploitation: CVE-2026-32689 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.58% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-32689?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-32689?

phoenixframework phoenix \>= 1.7.0, \< 1.7.22; \>= 1.8.0-rc.0, \< 1.8.6; phoenixframework phoenix \>= 2674c6ea30634667f9b09966b90269393b445953, \< \*.

### Is there a fix for CVE-2026-32689?

Yes. Fixed in phoenixframework phoenix 1.7.22, phoenixframework phoenix 1.8.6. Upgrade phoenix to 1.8.6 or later. Vendor workaround: Disable the longpoll transport on all Phoenix.Socket declarations, including the LiveView /live socket, by removing or setting longpoll: false. Note that this prevents clients that cannot use WebSockets from connecting.

### How do I check if I'm affected by CVE-2026-32689?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-32689>

HTML: <https://flawdb.com/CVE-2026-32689> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-32689>
