Skip to content

Werkzeug package cannot be upgraded to >=3.0 version with even the airflow version i.e. 2.10.5 #52123

@ajitraj88

Description

@ajitraj88

Apache Airflow version

2.10.5

If "Other Airflow 2 version" selected, which one?

No response

What happened?

We are currently using airflow version 2.10.5 which uses Werkzeug version 2.2.3. We have got the security findings(https://nvd.nist.gov/vuln/detail/CVE-2024-49767) for this Werkzeug version and the recommendation is to use Werkzeug version >= 3.0.

But when we try to update werkzeug to version 3.0.1 in the constraints file, we are getting the below error:

ERROR: Cannot install apache-airflow==2.10.5 because these package versions have conflicting dependencies.
The conflict is caused by:
    apache-airflow 2.10.5 depends on werkzeug<3 and >=2.0
    The user requested (constraint) werkzeug==3.0.1

Which implies that Airflow version 2.10.5 is not compatible with Werkzeug version >= 3.0.

Can you provide us with the solution

What you think should happen instead?

No response

How to reproduce

  1. In the constraints file(https://github.com/apache/airflow/blob/constraints-2.10.5/constraints-3.9.txt) of ariflow version 2.10.5 change the airflow version to 3.0.1.
  2. The build will fail with the below error:
ERROR: Cannot install apache-airflow==2.10.5 because these package versions have conflicting dependencies.
The conflict is caused by:
    apache-airflow 2.10.5 depends on werkzeug<3 and >=2.0
    The user requested (constraint) werkzeug==3.0.1

Operating System

NAME="Oracle Linux Server" VERSION="8.10"

Versions of Apache Airflow Providers

No response

Deployment

Other Docker-based deployment

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corearea:dependenciesIssues related to dependencies problemskind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions