# CVE-2026-40913: Apache Airflow: Import Errors API Leaks Unauthorized DAG Stack Traces via Incomplete Per-File RBAC Enforcement

Status: published. Published: 2026-11-09. Updated: 2026-11-09.

Apache Airflow's public Import Errors API returns the raw parse-failure stack trace to any user with the `ImportError.can_read` permission when the failing file has no registered DAG. This happens when a file fails to parse before any DAG is defined, or when all of its previously registered DAGs are removed but the parse error remains. Users who should not see that file's details can read stack traces that may expose file paths and code.

Users are advised to upgrade to Apache Airflow 3.4.0 or later, which restricts these stack traces to users with the new `IMPORT_ERRORS_ALL` permission.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: apache) — https://github.com/apache/airflow/pull/69790

## Affected products and versions

- Apache Software Foundation / Apache Airflow (apache-airflow-core): ≥ 0; < 3.4.0 (affected, semver). Source: CNA: apache

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-285

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/apache/airflow/pull/69790 (CNA: apache; patch)

- https://lists.apache.org/thread.html/t04l76dtx12m5cw8zfsnzo9r5rqnw0qv (CNA: apache; vendor-advisory)

- http://www.openwall.com/lists/oss-security/2026/11/09/3 (ADP: CVE)

- https://github.com/apache/airflow/pull/69790 (security@apache.org)

- https://lists.apache.org/thread.html/t04l76dtx12m5cw8zfsnzo9r5rqnw0qv (security@apache.org)

- http://www.openwall.com/lists/oss-security/2026/11/09/3 (af854a3a-2127-422b-91ae-364da2661108)

## Provenance

- CNA: apache: https://www.cve.org/CVERecord?id=CVE-2026-40913; retrieved 2026-11-09; source updated 2026-11-09

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-40913; retrieved 2026-11-09; source updated 2026-11-09

Revision: cb72a492844f622d7bef8a51b868d6c6208cade3ea0aa24129f0658b5b1c9c7c

Canonical: https://y2.dev/cve/CVE-2026-40913

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.