Skip to content

Fix possible fix(deps): 8 vulnerable dependencies in mix.lock - #197

Closed
begininvoke wants to merge 1 commit into
PostHog:mainfrom
begininvoke:redgem/security-fix-c3c8faaa
Closed

Fix possible fix(deps): 8 vulnerable dependencies in mix.lock#197
begininvoke wants to merge 1 commit into
PostHog:mainfrom
begininvoke:redgem/security-fix-c3c8faaa

Conversation

@begininvoke

Copy link
Copy Markdown

Proposing a fix for something flagged in mix.lock. It is around line 27.

plug_cowboy 2.7.4 calls String.to_atom/1 on the value returned by :cowboy_req.scheme/1. For HTTP/2 the scheme comes from an untrusted pseudo‑header, so an attacker can send a large number of unique scheme strings. Each call creates a new atom, which is never garbage‑collected, eventually exhausting the BEAM atom table (default 1,048,576 entries) and causing the VM to abort with a system_limit error. This results in a complete denial‑of‑service of the node. The issue is high severity because it can be triggered remotely without authentication and leads to total service outage. Upgrade to plug_cowboy ≥ 2.8.1 or apply a patch that avoids converting untrusted input into atoms.

Updates four vulnerable dependencies in mix.lock to versions that fix the reported CVEs, preserving all other dependency specifications.

For reference: rule CVE-2026-32688. Rated high.

I do not know the codebase, so please check the change fits how the rest of it works. Happy to adjust it or close this if the reasoning is off.


Found with automated scanning (RedGem) and reviewed before opening. If it is not useful, closing it is completely fine.

@begininvoke
begininvoke requested a review from a team as a code owner August 28, 2026 02:54
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.

2 participants