Vulnerability in bandit
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-74836 has been found in bandit.
Attackers can target a specific entry point like Bandit.HTTP2.Connection over the network to misuse the product.
Risk of unauthorized operations or information disclosure.
What to do: upgrade bandit to 1.12.5 or later.
If unsure, ask your IT team or search "bandit CVE-2026-74836" on the vendor's site.
CVE-2026-74836 (bandit) — CWE-770
Attack surface: Bandit.HTTP2.Connection / pending_sends / RST_STREAM
Patched: 1.12.5 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-770) exists in bandit. Attackers reach the vulnerable code path via Bandit.HTTP2.Connection.
Check the vendor advisory for the affected versions of bandit. Attack surface: Bandit.HTTP2.Connection / pending_sends / RST_STREAM.
Severity: ?. Risk of unauthorized operations or information disclosure.
Update to 1.12.5.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'bandit' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'bandit' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
banditを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade bandit to 1.12.5ステージング環境で 1.12.5 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Hexbandit |
≥ 0.3.4, < 1.12.5→ 1.12.5 |
1.12.5 |
| mtrudelbandit |
≥ 6feadb31189d18b7dcda6c663112cd3bbaf63a46, < f6914aad14bb1365dd6f306aa592cfb0819bed3e→ f6914aad14bb1365dd6f306aa592cfb0819bed3e |
f6914aad14bb1365dd6f306aa592cfb0819bed3e |
Original description The description as published by the source.
Summary
Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows an unauthenticated remote attacker to pin an unbounded number of HTTP/2 stream processes indefinitely via connection-level flow control. When a stream's response body outruns the HTTP/2 connection-level send window (default 65,535 bytes, shared across all streams on the connection), Bandit.HTTP2.Connection queues the remaining bytes and a reply closure in pending_sends and the stream process blocks forever inside a synchronous call to the connection process. Nothing bounds that wait and nothing purges the queue: a client RST_STREAM for the blocked stream is delivered to its mailbox but never read while it is stuck inside the call, so cancelling frees nothing, and periodic PING frames keep the transport-level read timeout from ever firing. The equivalent block on the stream-level send window is already bounded at 15 seconds; the connection-level path had no such bound.
Each stalled stream pins its process, Plug state, and any resource the Plug holds across the blocked write, such as a pooled upstream connection in a reverse-proxy Plug. The attacker chooses any endpoint whose response exceeds the connection window (common for most non-trivial payloads), grants a generous stream-level window so only the connection window limits it, and keeps the connection alive with periodic PINGs; the primitive is repeatable across streams and connections at the cost of one idle socke…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- package hex.pm
- package github.com
- patch github.com
- web nvd.nist.gov
- web cna.erlef.org
- web osv.dev
- web github.com
- web github.com
- web repo.hex.pm
- web github.com