Skip to content

Bandit 1.15 as the security floor, and the lock off every advised version - #106

Merged
HackTuah merged 1 commit into
mainfrom
deps/security-floor-bandit-1-14
Nov 29, 2026
Merged

HackTuah merged 1 commit into
mainfrom
deps/security-floor-bandit-1-14

Conversation

@HackTuah

Copy link
Copy Markdown
Member

Every pull request has been red since late October: the gate's dependency audit finds fourteen published advisories against the locked bandit 1.13.1, plug 1.20.3 and plug_crypto 2.2.0. Each Dependabot pull request moves one package, so each stays red on the others. This moves all of them at once and raises the optional Bandit floor.

The security floor (CHANGELOG, "Security: Bandit 1.15 or later", with how to tell whether you are affected):

What the new floor changed, measured:

  • No control frame holds an HTTP/2 body read. A stream fed a stream WINDOW_UPDATE, a connection WINDOW_UPDATE, a PING, an empty SETTINGS or a PRIORITY every 100 ms while its body is owed is answered 408 at 329, 302, 302, 302 and 301 ms for a 300 ms deadline. Before Bandit 1.14 a WINDOW_UPDATE held the stream past the deadline: the residue the threat model stated, closed now by the adapter (GHSA-p2qv-vx88-385x). The test that pinned the hold fired as written; it becomes one test per frame kind pinning the bound, so an adapter release that holds the read again fails the gate.
  • connection_timeout: stays, as the backstop and as a bound a host can set below read_timeout. Its three tests now drive it that way, with a client that owes its body and sends nothing. With the watchdog disabled, exactly those three fail.
  • Bandit enforces the stream window it advertises (GHSA-c3g7-2pg5-qvwh). The cap test's raw client writes 1 MiB without reading WINDOW_UPDATEs, so its listener now advertises a window the size of the body; the test still checks the 413 at the crossing frame.
  • The README, the threat model's row (with its cited test names), the transport's documentation and the CHANGELOG say so.

Evidence

  • mix hex.audit: no retired or advised package.
  • GATE_LEG=pinned ./tools/gate.sh (OTP 28.5.0.8, Elixir 1.18.4): "Gate OK.", every step passing, the audit included.
  • The floor, head and box legs, FIPS and conformance are measured first by this pull request's CI.

…sion

The lock pinned bandit 1.13.1, plug 1.20.3 and plug_crypto 2.2.0, which
carry fourteen published advisories between them, so the gate's audit
failed every pull request. The lock moves to bandit 1.15.0, plug 1.20.4,
plug_crypto 2.2.1 and telemetry 1.4.3 (ex_doc 0.40.5 for the pages).

The optional requirement moves to {:bandit, "~> 1.15"}: the HTTP
transport serves HTTP/2 by default, so each Bandit advisory reaches a
host that serves it. 1.15 rather than 1.14.1 for GHSA-j9wq-h5xx-5qx5,
which Bandit's repository published and OSV has not imported. Plug's
requirement is unchanged: this package calls neither Plug.Parsers'
multipart parser nor Plug.Crypto.

On the new floor no control frame holds an HTTP/2 body read: a stream
fed WINDOW_UPDATE, PING, SETTINGS or PRIORITY frames is answered 408 at
the deadline (measured, 301 to 329 ms for 300), so the residue the threat
model stated is closed by the adapter. The tripwire that pinned the hold
becomes one test per frame kind pinning the bound. connection_timeout
stays as the backstop and as a bound a host can set below read_timeout;
its tests drive it that way. The cap test's listener advertises a stream
window the size of the body, since Bandit now enforces the window it
advertises. The README, the threat model's row, the transport's
documentation and the CHANGELOG say so.

Signed-off-by: Ayla Croft <aylacroft@proton.me>
@HackTuah
HackTuah merged commit 3bc6f66 into main Nov 29, 2026
23 checks passed
HackTuah added a commit that referenced this pull request Nov 29, 2026
…repository

A lock goes bad by the calendar: from late October main's lock carried
fourteen published advisories and only Dependabot's pull requests went
red. And the audit reads OSV, which imports a repository's advisory
some time after the repository publishes it.

tools/advisory_watch.exs reads each locked hex package's GitHub
repository from the registry, that repository's published advisories,
and holds the locked version to each range; each finding says whether
OSV lists it for that version yet. Run on the lock before #106 it finds
fifteen, two of them (GHSA-j9wq-h5xx-5qx5, GHSA-fmr8-qrvr-4ww5) not in
OSV for bandit 1.13.1, which the audit alone passed. It exits 0, 1 or 2
(not measured) as tools/audit.sh does, and --self-test holds its range
reader offline.

advisory-watch.yml runs both readers every Monday and by hand, never on
a push or a pull request, with read-only permissions: a finding is a
failed scheduled run, which GitHub reports to the maintainer. A
governance test holds the triggers and both readers.

Signed-off-by: Ayla Croft <aylacroft@proton.me>
@HackTuah
HackTuah deleted the deps/security-floor-bandit-1-14 branch November 29, 2026 22: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.

1 participant