---
id: CVE-2025-54941
title: >-
  An example dag `example_dag_decorator` had non-validated parameter that
  allowed the UI user to redirect the example to a malicious server and execute
  code on worker
summary: >-
  An example dag `example_dag_decorator` had non-validated parameter that
  allowed the UI user to redirect the example to a malicious server and execute
  code on worker. This however required that the example dags are enabled in
  production (…
severity: medium
cvss: 4.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N'
cwe:
  - CWE-78
vendor: apache
product: airflow
affected:
  - 'airflow >= 3.0.0, < 3.0.5'
patched:
  - airflow 3.0.5
published: '2025-10-30'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T10:10:00.227'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-54941'
references:
  - url: 'https://lists.apache.org/thread/c6q6nofc6xl5bms039ks9b34v0v36df1'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2025/10/29/6'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-54941'
  - url: 'https://github.com/apache/airflow'
tags:
  - nvd
  - osv
  - pip
epss: 0.00492
epssPercentile: 0.42045
aliases:
  - GHSA-v3c9-j6h9-66v4
  - BIT-airflow-2025-54941
  - PYSEC-2026-1135
ecosystem: pip
ingestedAt: '2026-07-08T18:25:53.059Z'
---

## Overview

An example dag `example_dag_decorator` had non-validated parameter that allowed the UI user to redirect the example to a malicious server and execute code on worker. This however required that the example dags are enabled in production (not default) or the example dag code copied to build your own similar dag. If you used the `example_dag_decorator` please review it and apply the changes implemented in Airflow 3.0.5 accordingly.

## Affected

- `airflow >= 3.0.0, < 3.0.5`

## Remediation

Upgrade past the affected range:

- `airflow 3.0.5`

## Package advisory (CVE-2025-54941)

Affected packages:

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

Patched in:

- `apache-airflow 3.0.5`

Source: https://osv.dev/vulnerability/GHSA-v3c9-j6h9-66v4
