Repository navigation
Bandit 1.15 as the security floor, and the lock off every advised version - #106
Merged
Merged
Conversation
…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>
This was referenced Nov 29, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every pull request has been red since late October: the gate's dependency audit finds fourteen published advisories against the locked
bandit1.13.1,plug1.20.3 andplug_crypto2.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):
{:bandit, "~> 1.15"}, from"~> 1.13". The HTTP transport serves HTTP/2 by default, so each Bandit advisory reaches a host that serves it: twelve fixed in 1.14.0, GHSA-pxjf-g536-7r93 in 1.14.1, and GHSA-j9wq-h5xx-5qx5 in 1.15.0. The last is published in Bandit's repository and not yet in OSV, so the audit alone would have passed 1.14.1.plug's requirement stays~> 1.16: EEF-CVE-2026-120287 is inPlug.Parsers.MULTIPARTand EEF-CVE-2026-105963 inPlug.Crypto, and this package calls neither. The CHANGELOG tells a host that does to takeplug1.20.4 andplug_crypto2.2.1.bandit1.15.0,plug1.20.4,plug_crypto2.2.1,telemetry1.4.3,ex_doc0.40.5. This supersedes Dependabot deps: bump bandit from 1.13.1 to 1.15.0 #101, deps: bump plug from 1.20.3 to 1.20.4 #102, deps: bump telemetry from 1.4.2 to 1.4.3 #103 and deps: bump ex_doc from 0.40.4 to 0.40.5 #105.What the new floor changed, measured:
408at 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 belowread_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.413at the crossing frame.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.