# kafka-python prior to 2.3.2 contains a denial-of-service vulnerability in the protocol parser that allows a malicious broker or machine-in-the-middle attacker to exhaust memory or hang connections ...

Advisory record · `GHSA-m3px-q5gj-j9x7`

- **Identifiers:** `GHSA-m3px-q5gj-j9x7` · `CVE-2026-10142` · `PYSEC-2026-2190`
- **State:** Confirmed
- **Severity:** CVSS 8.7 High
- **Critical:** No
- **Weakness (CWE):** [CWE-789](https://cwe.mitre.org/data/definitions/789.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 10 Jun 2026
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 10 Jun 2026, 22:16 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `kafka-python` (PyPI): affected `<2.3.2`; fixed in `2.3.2`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> kafka-python versions before 2.3.2 are vulnerable to a denial-of-service flaw in the protocol parser. A malicious Kafka broker or an attacker positioned in the network path can send a crafted frame length value that causes either a multi-gigabyte memory allocation or an uncaught error that leaves the connection broken, so requests hang and consumers stop heartbeating until restart. Upgrade to kafka-python 2.3.2 or later.

Written 1 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.7 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`, from CNA (VulnCheck)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0035, the 28th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 10 Jun 2026, 20:13 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2026-10142)
- 31 Oct 2026, 14:10 UTC: First seen by agentprime
- 31 Oct 2026, 14:10 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/PYSEC-2026-2190)

## Sources

- [GitHub Advisory Database: GHSA-m3px-q5gj-j9x7](https://github.com/advisories/GHSA-m3px-q5gj-j9x7)
- [OSV: GHSA-m3px-q5gj-j9x7](https://osv.dev/vulnerability/GHSA-m3px-q5gj-j9x7)
- <https://github.com/dpkp/kafka-python/commit/6e4831444f972d169cdd11f5c8d50333cea3f19b>
- <https://github.com/dpkp/kafka-python/pull/3019>
- <https://github.com/dpkp/kafka-python/pull/3026>
- <https://www.vulncheck.com/advisories/kafka-python-prior-to-denial-of-service-via-protocol-parser-frame-length>
- <https://github.com/advisories/GHSA-m3px-q5gj-j9x7>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-m3px-q5gj-j9x7>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-m3px-q5gj-j9x7/>. Everything for agents: <https://agentprime.io/llms.txt>.
