# CVE-2025-57735: Apache Airflow insufficient session expiration in JWT logout

Source: https://junglewise.ai/threats/cve-2025-57735-apache-airflow-insufficient-session-expiration-in-jwt-logout  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-09. Updated: 2026-05-10  
License: CC BY 4.0 with a link back

CVE-2025-57735 · Severity: critical · CVSS 9.1 · Published 2026-04-09

Apache Airflow, a platform used to programmatically author and monitor workflows, contained a flaw where user session tokens remained valid even after a user logged out. If an attacker intercepted one of these tokens, they could continue to access the system as that user indefinitely until the token naturally expired. This could lead to unauthorized access to sensitive workflow data or the ability to trigger administrative actions.

Technologies: [Apache Airflow](https://junglewise.ai/threats/technologies/airflow), [apache-airflow (PyPI)](https://junglewise.ai/threats/technologies/apache-airflow). Vendors: [Apache](https://junglewise.ai/threats/vendors/apache), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-57735 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-57735 being exploited in the wild.

**How severe is CVE-2025-57735?** Critical severity, with a CVSS score of 9.1, published 9 April 2026.

**Which products and versions are affected?** apache-airflow (PyPI) >= 3.0.0, < 3.2.0, ECOSYSTEM:introduced=3.0.0,fixed=3.2.0.

**Is there a fix for CVE-2025-57735?** Yes. apache-airflow (PyPI): upgrade to 3.2.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-57735 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2025-57735?** Check whether you run Apache Airflow or apache-airflow (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- apache-airflow (PyPI): upgrade to 3.2.0 or later

  ```sh
  pip install "apache-airflow>=3.2.0"
  ```


## Technical details

An insufficient session expiration vulnerability (CWE-613) exists in Apache Airflow versions 3.0.0 through 3.1.x. The application fails to revoke or blacklist JWT tokens when a user explicitly logs out, meaning the backend continues to accept the token as valid until its original expiration timestamp is reached. An attacker who obtains a valid JWT (e.g., through network interception or local access) can maintain authenticated access to the Airflow REST and UI APIs even after the legitimate user has terminated their session. The fix, introduced in version 3.2.0, implements a 'revoked_token' table to track and invalidate JTIs (JWT IDs) upon logout.

## Affected products

- Apache Airflow >= 3.0.0, < 3.2.0

## Identifiers

- CVE-2025-57735
- GHSA-c92r-g8j5-vhcx
- PYSEC-2026-269

## Timeline

- 2025-10-15: other: Initial backend JWT handling PR merged
- 2026-02-05: other: Token revocation mechanism PR merged
- 2026-04-09: advisory: Public disclosure of vulnerability
- 2026-04-09: patched: Version 3.2.0 released

## References

- [https://github.com/apache/airflow/pull/56633](https://github.com/apache/airflow/pull/56633)
- [https://github.com/apache/airflow/pull/61339](https://github.com/apache/airflow/pull/61339)
- [https://lists.apache.org/thread/ovn8mpd8zkc604hojt7x3wsw3kc60x98](https://lists.apache.org/thread/ovn8mpd8zkc604hojt7x3wsw3kc60x98)
- [http://www.openwall.com/lists/oss-security/2026/04/09/16](http://www.openwall.com/lists/oss-security/2026/04/09/16)

## Related threats

- [Apache Airflow incomplete deserialization check bypass in scheduler](https://junglewise.ai/threats/cve-2026-96285-apache-airflow-3-3-1-shipped-a-fix-for-that-checks-the-scheduler)
- [Apache Airflow scheduler XCom deserialization privilege escalation](https://junglewise.ai/threats/cve-2026-86829-apache-airflow-s-scheduler-fully-deserializes-xcom-values-written)
- [Apache Airflow CLI audit log secrets exposure](https://junglewise.ai/threats/cve-2026-86468-apache-airflow-s-cli-records-its-arguments-in-the-audit-log-but)
- [Apache Airflow unsafe deserialization in deadline alert fields](https://junglewise.ai/threats/cve-2026-82337-apache-airflow-rebuilt-deadline-alert-fields-through-generic)
- [Apache Airflow Task SDK secret cache key collision in multi-team deployments](https://junglewise.ai/threats/cve-2026-76185-apache-airflow-s-task-sdk-secret-cache-built-its-keys-from-the)
