{"id":"CVE-2026-114216","aliases":["CVE-2026-114216","EEF-CVE-2026-114216","GHSA-w5wc-g2hc-g7m2"],"related":[],"kind":"vulnerability","state":"published","title":"Chunk extensions accept bare LF and CR, enabling request smuggling in Bandit","summary":"Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') vulnerability in the HTTP/1.1 chunked body reader of mtrudel bandit allows an unauthenticated remote attacker to smuggle a second request past a front-end proxy via a chunk extension that contains a bare LF.\n\nThe chunked reader in lib/bandit/http1/socket.ex takes the chunk-size line to be everything up to the first CRLF and discards everything after ; without checking it against the RFC 9112 chunk-ext grammar, so bare LF, bare CR and other control bytes pass. A proxy that ends the size line at a bare LF reads 2;\\nxx\\r\\n40\\r\\n... as one request whose second chunk holds a GET /admin, while Bandit ends the body early and dispatches GET /admin as a separate pipelined request. Deployments without such a proxy in front of Bandit are not affected.\n\nThis issue affects bandit: from 1.12.4 before 1.14.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') vulnerability in the HTTP/1.1 chunked body reader of mtrudel bandit allows an unauthenticated remote attacker to smuggle a second request past a front-end proxy via a chunk extension that contains a bare LF.\n\nThe chunked reader in lib/bandit/http1/socket.ex takes the chunk-size line to be everything up to the first CRLF and discards everything after ; without checking it against the RFC 9112 chunk-ext grammar, so bare LF, bare CR and other control bytes pass. A proxy that ends the size line at a bare LF reads 2;\\nxx\\r\\n40\\r\\n... as one request whose second chunk holds a GET /admin, while Bandit ends the body early and dispatches GET /admin as a separate pipelined request. Deployments without such a proxy in front of Bandit are not affected.\n\nThis issue affects bandit: from 1.12.4 before 1.14.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nInconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') vulnerability in the HTTP/1.1 chunked body reader of mtrudel bandit allows an unauthenticated remote attacker to smuggle a second request past a front-end proxy via a chunk extension that contains a bare LF.\n\nThe chunked reader in `lib/bandit/http1/socket.ex` takes the chunk-size line to be everything up to the first CRLF and discards everything after `;` without checking it against the RFC 9112 `chunk-ext` grammar, so bare LF, bare CR and other control bytes pass. A proxy that ends the size line at a bare LF reads `2;\\nxx\\r\\n40\\r\\n...` as one request whose second chunk holds a `GET /admin`, while Bandit ends the body early and dispatches `GET /admin` as a separate pipelined request. Deployments without such a proxy in front of Bandit are not affected.\n\nThis issue affects bandit: from 1.12.4 before 1.14.0.\n\n## Details\n\n**1. Unchecked extension.** In `lib/bandit/http1/socket.ex`, the chunked body reader takes the chunk-size line to be everything up to the first CRLF. Anything after `;` is thrown away without being checked against the RFC 9112 §7.1.1 `chunk-ext` grammar, so bare LF, bare CR and other control bytes are accepted. The 16-byte size-line cap does not help, because the payload needs only 5 bytes.\n\n**2. Bandit's reading.** For the body `2;\\nxx\\r\\n40\\r\\n0\\r\\n\\r\\nGET /admin ...`, Bandit takes `2;\\nxx` as the size line and `40` as the 2-byte chunk, and the embedded `0\\r\\n\\r\\n` ends the body. Bandit then runs `GET /admin` as a second pipelined request.\n\n**3. The proxy's reading.** A proxy that ends the size line at the bare LF sees only one POST, with the chunk `xx` and a 0x40-byte chunk that holds the `GET /admin` bytes.\n\n## Proof of concept\n\n1. Run Bandit with a Plug that reads the body and records each request's method and path.\n2. On one connection, send `POST /public` with `Transfer-Encoding: chunked` and the body `2;\\nxx\\r\\n40\\r\\n0\\r\\n\\r\\n`, followed directly by `GET /admin HTTP/1.1` with `Content-Length: 7` and the body `\\r\\n0\\r\\n\\r\\n`.\n3. Bandit dispatches both `POST /public` with the body `40` and `GET /admin`. A proxy that ends lines at a bare LF would have forwarded the same bytes as the single `POST /public`.\n\n## Impact\n\nBehind a front-end proxy that treats a bare LF as a line ending and forwards chunked bodies unchanged, an unauthenticated attacker can have Bandit run requests the proxy never saw, getting past the proxy's access controls.\n\n## Workarounds\n\nWhere the front-end proxy can reach Bandit over HTTP/2, disable HTTP/1 with `http_1_options: [enabled: false]`, so that the chunked body reader never runs.","format":"markdown","source":"eef"}],"published":"2026-10-26T13:30:41.225Z","modified":"2026-11-25T06:30:05.362Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N"}],"cwes":["CWE-444"],"affected":[{"ranges":[{"type":"semver","introduced":"1.12.4","fixed":"1.14.0","status":"affected"}],"vendor":"mtrudel","product":"bandit","package":"bandit","cpe":"cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*","repo":"https://github.com/mtrudel/bandit","source":"cvelist"},{"ranges":[{"type":"git","introduced":"c31e9e3c76dcbfc239a96eabed5341ced7885ae5","fixed":"220b9dfd27f9a21305be2afc75cbe585ddc24e7a","status":"affected"}],"vendor":"mtrudel","product":"bandit","package":"mtrudel/bandit","cpe":"cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*","repo":"https://github.com/mtrudel/bandit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.12.4","status":"affected","fixed":"1.14.0"}],"ecosystem":"Hex","package":"bandit","purl":"pkg:hex/bandit","source":"eef"},{"ranges":[{"type":"git","introduced":"c31e9e3c76dcbfc239a96eabed5341ced7885ae5","status":"affected","fixed":"220b9dfd27f9a21305be2afc75cbe585ddc24e7a"}],"repo":"https://github.com/mtrudel/bandit","source":"eef"}],"references":[{"url":"https://github.com/mtrudel/bandit/security/advisories/GHSA-w5wc-g2hc-g7m2","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-114216.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-114216","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mtrudel/bandit/commit/c31e9e3c76dcbfc239a96eabed5341ced7885ae5","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/mtrudel/bandit/commit/220b9dfd27f9a21305be2afc75cbe585ddc24e7a","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/bandit","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Mat Trudel"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-26T15:03:20.382Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-114216","url":"https://www.cve.org/CVERecord?id=CVE-2026-114216","licence":"CVE Terms of Use","modified":"2026-11-19T08:08:35.647Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-114216","url":"https://osv.dev/vulnerability/EEF-CVE-2026-114216","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:05.362Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-114216","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114216","licence":"Public domain","modified":"2026-10-26T16:59:16.113Z"}],"updatedAt":"2026-11-25T22:59:47.120Z","epss":{"score":0.00602,"percentile":0.50195,"date":"2026-12-01T12:00:22.000Z"}}