Skip to content

deps: Update dependency plug_cowboy to v2.8.1 [SECURITY] - #88

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/hex-plug_cowboy-vulnerability
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/hex-plug_cowboy-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
plug_cowboy (source) dev minor 2.6.1 → 2.8.1

Atom table exhaustion via HTTP/2 :scheme pseudo-header in plug_cowboy

CVE-2026-32688 / EEF-CVE-2026-32688 / GHSA-q8x4-x7mp-5vg2

More information

Details

Summary

Allocation of Resources Without Limits or Throttling vulnerability in elixir-plug plug_cowboy allows unauthenticated remote denial of service via atom table exhaustion.

Plug.Cowboy.Conn.conn/1 in lib/plug/cowboy/conn.ex calls String.to_atom/1 on the value returned by :cowboy_req.scheme/1. For HTTP/2 connections, cowlib passes the client-supplied :scheme pseudo-header value through verbatim without validation. Each unique value permanently allocates a new entry in the BEAM atom table. Since atoms are never garbage-collected and the atom table has a fixed limit (default 1,048,576), an unauthenticated attacker can exhaust the table by sending HTTP/2 requests with unique :scheme values, causing the Erlang VM to abort with system_limit and taking down the entire node.

This vulnerability does not affect HTTP/1.1, where cowboy derives the scheme from the listener type rather than from a client-supplied header.

This issue affects plug_cowboy: from 2.0.0 before 2.8.1.

Workarounds

Disable HTTP/2 on the Plug.Cowboy.https/3 listener by passing protocol_options: %{protocols: [:http]} in the cowboy options. This restricts the listener to HTTP/1.1, where the scheme is derived from the listener type and is not attacker-controlled.

Severity

  • CVSS Score: 8.7 / 10 (High)
  • Vector String: 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

References

This data is provided by OSV.


Plug.Cowboy vulnerable to unauthenticated remote DoS via HTTP/2 :scheme atom-table exhaustion

CVE-2026-32688 / EEF-CVE-2026-32688 / GHSA-q8x4-x7mp-5vg2

More information

Details

Summary

An unauthenticated remote denial-of-service vulnerability in Plug.Cowboy.Conn allows any attacker who can reach an HTTPS Plug.Cowboy listener via HTTP/2 to permanently exhaust the BEAM atom table and crash the entire Erlang VM.

Am I Affected?

All users running plug_cowboy with HTTP/2 may be affected, this includes Phoenix applications. If another HTTP adapter such as Bandit is used, then the consuming project is not affected. If the HTTP/2 endpoint is exposed directly (without a proxy) then the project will be affected. If a proxy is in use then it depends on the proxy configuration. Many proxies use HTTP/1.1 internally, and would be unaffected.

Impact

The vulnerability will allow crashing the Erlang VM (BEAM) via atom exhaustion.

Mitigation

Users are advised to update to plug_cowboy v2.8.1 to mitigate this issue.

Credits

Plug.Cowboy thanks Peter Ullrich for finding and responsibly disclosing this vulnerability.

Severity

  • CVSS Score: 8.7 / 10 (High)
  • Vector String: 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

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Release Notes

elixir-plug/plug_cowboy (plug_cowboy)

v2.8.1

Compare Source

Security fixes

v2.8.0

Compare Source

Enhancements
  • Remove supported for deprecated next_protocols_advertised

v2.7.5

Compare Source

Enhancements
  • Ensure path too large request errors are correctly translated

v2.7.4

Compare Source

Enhancements
  • Ensure errors from Ranch are correctly translated

v2.7.3

Compare Source

Enhancements
  • Ensure errors from Cowboy 2.13 are correctly translated

v2.7.2

Compare Source

Bug fixes
  • Ensure crash_reason in metadata is always a tuple

v2.7.1

Compare Source

Enhancements
  • Support Cowboy 2.11

v2.7.0

Compare Source

Enhancements
  • Do not allow Cowboy 2.11 due to backwards incompatible changes

v2.6.2

Compare Source

Enhancements
  • Fix warnings on Elixir v1.15+

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested a review from a team as a code owner December 2, 2026 08:24
@renovate
renovate Bot requested review from emyller and removed request for a team December 2, 2026 08:24
@codspeed

codspeed Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 12 untouched benchmarks


Comparing renovate/hex-plug_cowboy-vulnerability (9705bae) with main (4c73902)

Open in CodSpeed

@renovate
renovate Bot force-pushed the renovate/hex-plug_cowboy-vulnerability branch from 68c5871 to 9705bae Compare December 3, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants