Repository navigation
π§ chore(broadcast): raise grpc past the RCE, and commit the lockfile - #7
Conversation
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>
|
Merged
Result: Three advisories remain, and they are not the ones this PR was about:
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.
|
What prompted this
services/broadcast/mix.lockwas not in the repo while the tavern's was, so afetch 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:
The fix
mix deps.updatecould 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.getnow 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 majorversion 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 testin broadcast still fails:mix.exsdeclaresmod: {Broadcast.Application, []}and no such module exists, which is whymake testis red repo-wide. Pre-existing, unrelated to dependencies, and aseparate concern β happy to take it in a follow-up.
π€ Generated with Claude Code