Skip to content

Moves bandit past the HTTP/2 stream advisory - #278

Merged
johnnyt merged 1 commit into
mainfrom
se-i2cq-bandit-advisory
Nov 27, 2026
Merged

johnnyt merged 1 commit into
mainfrom
se-i2cq-bandit-advisory

Conversation

@johnnyt

@johnnyt johnnyt commented Nov 27, 2026

Copy link
Copy Markdown
Member

What

Moves bandit past the HTTP/2 StreamError advisory that mix deps.get reported on the locked bandit 1.12.5:

  • Advisory: EEF-CVE-2026-111103 (HIGH), aka CVE-2026-111103, GHSA-2238-pgfc-w82m, "HTTP/2 StreamError recovery rolls back connection state and bypasses per-connection limits in Bandit".
  • First fixed release: bandit 1.14.0 (its CHANGELOG, "Keep the HTTP/2 connection state and HPACK decoder state when a stream error occurs in the middle of a read, so that per-connection limits still apply").

How

mix deps.unlock bandit thousand_island && mix deps.get. Every bandit release after 1.12.5 (1.13.0 onward) requires thousand_island ~> 1.6, and the lock held 1.5.0, so bandit cannot move alone; unlocking bandit by itself re-resolves to 1.12.5. The move is two lock lines and nothing else:

  • bandit 1.12.5 -> 1.15.0
  • thousand_island 1.5.0 -> 1.6.0

No mix.exs line moves: {:bandit, "~> 1.5"} admits 1.15.0. bandit 1.15.0's other requirements are already met by the lock (hpax 1.1.0 meets its new ~> 1.1).

Advisories deps.get prints

  • Before (main): bandit 1.12.5 plus db_connection 2.10.2, ecto 3.14.2, phoenix 1.8.15, phoenix_html 4.3.0, phoenix_live_view 1.2.12, plug 1.20.3, plug_crypto 2.2.0, saxy 1.6.1.
  • After: no bandit advisory (every bandit advisory listed on main is gone, not only the one above). The other eight packages print as before; they are unchanged by this PR and are tracked separately (se-obzj).

What changed upstream that this app touches

The app runs bandit through Bandit.PhoenixAdapter with plain http: [ip:, port:] options and the LiveView websocket; it sets no thousand_island_options, no bandit compress option, and no TLS listener. Read against bandit's CHANGELOG from 1.12.5 to 1.15.0 and thousand_island's from 1.5.0 to 1.6.0:

  • Stricter HTTP/1 and HTTP/2 request validation (request line, Host and authority, chunk extensions, HTTP/2 stream and header limits) applies to every request this app serves; a conforming browser or test client is unaffected.
  • A server-initiated WebSocket close now closes the connection after the close timeout; a connection process hibernates after 15s idle. Both apply to the LiveView socket and change no app behaviour.
  • The 1.13.0 stale conn check was reverted in 1.13.1, so Phoenix error rendering is unaffected.
  • thousand_island 1.6.0 adds a 5000 ms default transport handshake timeout (a plain TCP listener, as here, has no handshake to time out) and acceptor resilience; the app configures neither.

Nothing the app calls directly changed.

Checks

  • Full mix quality green on the committed tree.
  • Review tier: gate (a lock bump). In-turn review: the diff is exactly the two lock lines above.

mix deps.get reported bandit 1.12.5 under EEF-CVE-2026-111103: an
HTTP/2 StreamError recovery rolled back connection state and let a
client bypass per-connection limits. bandit 1.14.0 fixed it.

Every bandit release after 1.12.5 requires thousand_island ~> 1.6,
so the move unlocks both (mix deps.unlock bandit thousand_island,
then mix deps.get): bandit 1.12.5 to 1.15.0, thousand_island 1.5.0
to 1.6.0. No other lock line and no mix.exs line moves.

Refs: se-i2cq
@johnnyt
johnnyt merged commit 76dc44d into main Nov 27, 2026
4 checks passed
@johnnyt
johnnyt deleted the se-i2cq-bandit-advisory branch November 27, 2026 22:29
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