# CVE-2026-58229: Unbounded HTTP/1 response-header and chunked-trailer accumulation in Mint causes memory-exhaustion DoS

Status: published. Published: 2026-07-14. Updated: 2026-11-24.

Allocation of resources without limits vulnerability in elixir-mint mint allows a remote HTTP server to exhaust memory on the client host and cause a denial of service.

The Mint.HTTP1.decode_headers/5 and Mint.HTTP1.decode_trailer_headers/4 functions in lib/mint/http1.ex accumulate every parsed response header and chunked-trailer field into a per-request list that persists across incoming TCP segments as request.headers_buffer, and only clear it when the terminating blank line is received. The section has no cap on the number of headers or on total bytes, and the underlying :erlang.decode_packet(:httph_bin, binary, []) parser is invoked with an empty option list so its per-line and per-packet size limits also default to unlimited.

A malicious HTTP server (reachable directly, via an attacker-controlled redirect, via SSRF, or via a man-in-the-middle) can stream complete header lines (or, after a chunked body, complete trailer lines) indefinitely without ever emitting the terminating blank line. The connection state grows without bound until the BEAM node is killed by the operating system's out-of-memory handler, taking down the entire application that uses Mint as an HTTP client.

This issue affects mint: from 0.1.0 before 1.9.2.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/elixir-mint/mint/commit/566d702e6f29105f77522ca7aabb9f64f2f4e333

## Affected products and versions

- elixir-mint / mint (mint): ≥ 0.1.0; < 1.9.2 (affected, semver). Source: CNA: EEF
- elixir-mint / mint (elixir-mint/mint): ≥ 3e6de4bac4821b0eb4d6109e8b1f3fb6458792c8; < 566d702e6f29105f77522ca7aabb9f64f2f4e333 (affected, git). Source: CNA: EEF

## Severity and prioritization

- CVSS 4.0: 8.2 (high); CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N; source: CNA: EEF

- CISA KEV: No listing in collected sources

- EPSS: 0.50% as of 2026-11-23; percentile 43.79%

- SSVC: exploitation poc; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-770

## Exploit evidence

- exploit: https://github.com/elixir-mint/mint/security/advisories/GHSA-qrfr-wh4c-3qhw (ADP: CISA-ADP)

## References

- https://github.com/elixir-mint/mint/security/advisories/GHSA-qrfr-wh4c-3qhw (CNA: EEF; vendor-advisory, related)

- https://cna.erlef.org/cves/CVE-2026-58229.html (CNA: EEF; related)

- https://osv.dev/vulnerability/EEF-CVE-2026-58229 (CNA: EEF; related)

- https://github.com/elixir-mint/mint/commit/3e6de4bac4821b0eb4d6109e8b1f3fb6458792c8 (CNA: EEF; related)

- https://github.com/elixir-mint/mint/commit/566d702e6f29105f77522ca7aabb9f64f2f4e333 (CNA: EEF; patch)

- https://github.com/elixir-mint/mint/security/advisories/GHSA-qrfr-wh4c-3qhw (ADP: CISA-ADP; exploit)

## Provenance

- CNA: EEF: https://www.cve.org/CVERecord?id=CVE-2026-58229; retrieved 2026-11-24; source updated 2026-11-24

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-58229; retrieved 2026-11-24; source updated Not reported

Revision: 30e19a8fba8d94add86a1360e83aa9be1bfb9f29d654473dfce800075ff5220e

Canonical: https://y2.dev/cve/CVE-2026-58229

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.