# Apache Airflow Apache Kafka provider versions 1.15.0 before 2.0.0 resolve dotted-path strings found in a Kafka connection's \`extra\` field into Python callables via \`import_string\`, with no allowlis...

Advisory record · `PYSEC-2026-3986`

- **Identifiers:** `PYSEC-2026-3986` · `CVE-2026-86792`
- **State:** Confirmed
- **Severity:** CVSS 8.8 High
- **Critical:** No
- **Weakness (CWE):** [CWE-470](https://cwe.mitre.org/data/definitions/470.html)
- **Tags:** [Code injection](https://agentprime.io/advisories/tag/code-injection.md)
- **Published:** 16 Sept 2026
- **Updated:** 19 Sept 2026
- **Reviewed by a person:** No

Published by OSV at 16 Sept 2026, 10:16 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `apache-airflow-providers-apache-kafka` (PyPI): affected `>=1.15.0, <2.0.0`; fixed in `2.0.0`

## Machine-written summary

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

> Apache Airflow's apache-airflow-providers-apache-kafka versions 1.15.0 before 2.0.0 resolve dotted-path strings from a Kafka connection's extra field into Python callables without an allowlist and pass them to the confluent-kafka client. A user who can only edit Airflow connections can gain arbitrary code execution in the scheduler when the Kafka event producer is enabled, which is off by default. Upgrade to apache-airflow-providers-apache-kafka 2.0.0 or later, which adds an allowlist option for these callbacks.

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.8 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from OSV

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

## Timeline

- 31 Oct 2026, 14:09 UTC: First seen by agentprime
- 31 Oct 2026, 14:09 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/PYSEC-2026-3986)

## Sources

- [OSV: PYSEC-2026-3986](https://osv.dev/vulnerability/PYSEC-2026-3986)
- <http://www.openwall.com/lists/oss-security/2026/09/15/15>
- <https://lists.apache.org/thread/jl4gpok02313yh3rvtvj8qbo11c6zpr2>
- <https://lists.apache.org/thread/jl4gpok02313yh3rvtvj8qbo11c6zpr2?users@airflow.apache.org>
- <https://github.com/apache/airflow/pull/72208>

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/PYSEC-2026-3986>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/PYSEC-2026-3986/>. Everything for agents: <https://agentprime.io/llms.txt>.
