Skip to content

πŸ”§ chore(broadcast): raise grpc past the RCE, and commit the lockfile - #7

Merged
teceer merged 2 commits into
mainfrom
chore/broadcast-deps-security
Aug 6, 2026
Merged

teceer merged 2 commits into
mainfrom
chore/broadcast-deps-security

Conversation

@teceer

@teceer teceer commented Aug 6, 2026

Copy link
Copy Markdown
Owner

What prompted this

services/broadcast/mix.lock was not in the repo while the tavern's was, so a
fetch here resolved fresh every time and two machines could build against
different versions of the same declared range.

Committing it meant first looking at what it would pin. It would have pinned:

Package Advisory Severity
grpc 0.11.5 EEF-CVE-2026-48853 β€” RCE via unsafe Erlang term deserialisation CRITICAL
grpc 0.11.5 EEF-CVE-2026-48599 β€” authorization bypass in HTTP transcoding HIGH
grpc 0.11.5 EEF-CVE-2026-53430 HIGH
cowlib 2.19.0 EEF-CVE-2026-43966 β€” HTTP response splitting MEDIUM
cowlib 2.19.0 EEF-CVE-2026-43969 β€” cookie header injection LOW

The fix

mix deps.update could not help: 0.11.5 is the top of what {:grpc, "~> 0.9"}
allows, so the constraint was the vulnerability. Raised to ~> 1.0.

That resolves grpc 1.0.3 and clears all five β€” 1.0 moved off cowboy, so cowlib
leaves the dependency tree entirely rather than being upgraded to a version that
does not yet exist (2.19.0 is the latest release and still affected).

A clean mix deps.get now reports zero advisories.

Why this is a safe time to do it

lib/broadcast/ is empty. Nothing in this service calls grpc yet, so a major
version bump in a transport it does not use is a lockfile change and nothing
more. Doing the same thing once there is code would mean reading the
elixir-grpc 1.0 migration notes first β€” this is the cheapest moment it will ever
be.

The tavern was audited too and is clean; it is the only other Elixir service,
and it deliberately takes no gRPC library at all.

Not fixed here

mix test in broadcast still fails: mix.exs declares
mod: {Broadcast.Application, []} and no such module exists, which is why
make test is red repo-wide. Pre-existing, unrelated to dependencies, and a
separate concern β€” happy to take it in a follow-up.

πŸ€– Generated with Claude Code

teceer and others added 2 commits August 6, 2026 13:15
Two things that turned out to be one thing.

The tavern's mix.lock is in the repo and broadcast's was not, so a fetch here
resolved fresh every time and two machines could build against different
versions of the same declared range. Committing it meant first looking at what
it would pin, and what it would have pinned was:

- grpc 0.11.5 β€” EEF-CVE-2026-48853 (CRITICAL): remote code execution through
  unsafe Erlang term deserialisation. Plus EEF-CVE-2026-48599 (HIGH),
  authorization bypass via path binding override in HTTP transcoding.
- cowlib 2.19.0 β€” EEF-CVE-2026-43966 (MEDIUM) and EEF-CVE-2026-43969 (LOW).

`mix deps.update` could not help: 0.11.5 was the top of what `~> 0.9` allows, so
the constraint was the vulnerability. Raised to `~> 1.0`, which resolves grpc
1.0.3 and clears all four β€” 1.0 moved off cowboy, so cowlib leaves the tree
entirely rather than being upgraded.

Safe to do now precisely because nothing depends on it yet: lib/broadcast/ is
empty, so a major bump in a transport this service does not call is a lockfile
change and nothing more. Doing it once there is code would mean reading the
elixir-grpc 1.0 migration notes first.

Unchanged and still broken: `mix test` here fails because mix.exs declares
`mod: {Broadcast.Application, []}` and no such module exists. Pre-existing, and
a separate concern from this.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@teceer

teceer commented Aug 6, 2026

Copy link
Copy Markdown
Owner Author

Merged main in and resolved the lockfile conflict. Two things changed since this was opened, and the second one matters:

main now carries the vulnerable lockfile. services/broadcast/mix.lock was committed on main (via #3) pinning grpc 0.11.5 β€” the version with EEF-CVE-2026-48853, the RCE. So this is no longer "commit a lockfile and pick a good version"; it is a fix for something now shipped on the default branch.

mix.exs gained the OpenTelemetry dependencies from #3, which this branch predates. Resolved by taking main's mix.exs (OTel included) and re-applying the ~> 1.0 constraint plus its comment, then re-resolving the lockfile from scratch rather than hand-merging it.

Result: grpc 0.11.5 => 1.0.3 (major), and all three grpc advisories β€” the CRITICAL RCE and both HIGHs β€” are gone.

Three advisories remain, and they are not the ones this PR was about:

Package Advisory Severity Pulled in by
gun 2.5.0 GHSA-w4f7-4cxr-rv3c MEDIUM opentelemetry_exporter β†’ grpcbox β†’ gun
cowlib 2.19.0 EEF-CVE-2026-43966 MEDIUM same chain
cowlib 2.19.0 EEF-CVE-2026-43969 LOW same chain

The PR body predicted cowlib would leave the tree entirely once grpc moved off cowboy. That was true of the grpc branch β€” cowlib is now pulled in by the OTel exporter instead, which arrived after this PR was written. Left alone here on purpose: it is a different dependency chain, a different severity class, and its own decision.

mix compile --warnings-as-errors is clean. mix test fails on Broadcast.Application is not available β€” lib/broadcast/ is still empty, so that is the pre-existing state, not a regression, and there is no broadcast job in CI.

@teceer
teceer merged commit 50fd5bc into main Aug 6, 2026
2 of 7 checks passed
@teceer
teceer deleted the chore/broadcast-deps-security branch August 6, 2026 16:16
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.

1 participant