---
id: CVE-2026-31987
aliases:
  - GHSA-phv5-vq5p-qhp7
  - BIT-airflow-2026-31987
  - PYSEC-2026-2352
title: 'Apache Airflow: JWT token appearing in logs'
summary: 'Apache Airflow: JWT token appearing in logs'
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
vendor: apache-airflow
product: apache-airflow
ecosystem: pip
affected:
  - 'apache-airflow >= 3.0.0, < 3.2.0'
patched:
  - apache-airflow 3.2.0
published: '2026-04-16'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-phv5-vq5p-qhp7'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-31987'
  - url: 'https://github.com/apache/airflow/issues/62428'
  - url: 'https://github.com/apache/airflow/issues/62773'
  - url: 'https://github.com/apache/airflow/pull/62964'
  - url: 'https://github.com/apache/airflow'
  - url: 'https://lists.apache.org/thread/pvsrtxzwo9xy6xgknmwslv4zrw70kt6g'
  - url: 'http://www.openwall.com/lists/oss-security/2026/04/16/7'
tags:
  - osv
  - pip
epss: 0.00835
epssPercentile: 0.55858
ingestedAt: '2026-07-13T18:58:01.469Z'
---

## Overview

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.

## Affected packages

- `apache-airflow >= 3.0.0, < 3.2.0`

## Remediation

Upgrade to a patched release:

- `apache-airflow 3.2.0`
