Skip to content

fix: Update Werkzeug to 3.1.5 to fix CVE-2026-21860 and CVE-2025-66221#6433

Open
san81 wants to merge 2 commits intoopensearch-project:mainfrom
san81:werkzeug-cve
Open

fix: Update Werkzeug to 3.1.5 to fix CVE-2026-21860 and CVE-2025-66221#6433
san81 wants to merge 2 commits intoopensearch-project:mainfrom
san81:werkzeug-cve

Conversation

@san81
Copy link
Copy Markdown
Collaborator

@san81 san81 commented Jan 27, 2026

Updates werkzeug from 3.0.6 to 3.1.5 in the trace analytics sample app to address two medium-severity security vulnerabilities related to the safe_join function allowing path segments with Windows device names.

Issues Resolved

Resolves #6326

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Updates werkzeug from 3.0.6 to 3.1.5 in the trace analytics sample app
to address two medium-severity security vulnerabilities related to the
safe_join function allowing path segments with Windows device names.

Resolves opensearch-project#6326
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com>
Copy link
Copy Markdown
Member

@dlvenable dlvenable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build is failing with:

#26 3.111 ERROR: Cannot install -r /app/requirements.txt (line 1) and werkzeug==3.1.5 because these package versions have conflicting dependencies.
#26 3.111 
#26 3.111 The conflict is caused by:
#26 3.111     The user requested werkzeug==3.1.5
#26 3.111     dash 2.15.0 depends on Werkzeug<3.1
#26 3.111 
#26 3.111 Additionally, some packages in these conflicts have no matching distributions available for your environment:
#26 3.111     werkzeug
#26 3.111 
#26 3.111 To fix this you could try to:
#26 3.111 1. loosen the range of package versions you've specified
#26 3.111 2. remove package versions to allow pip to attempt to solve the dependency conflict
#26 3.111 
#26 3.263 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
#26 ERROR: process "/bin/sh -c pip3 install -r /app/requirements.txt" did not complete successfully: exit code: 1
------
 > [stage-2  8/12] RUN pip3 install -r /app/requirements.txt:
3.111     dash 2.15.0 depends on Werkzeug<3.1
3.111 
3.111 Additionally, some packages in these conflicts have no matching distributions available for your environment:
3.111     werkzeug
3.111 
3.111 To fix this you could try to:
3.111 1. loosen the range of package versions you've specified
3.111 2. remove package versions to allow pip to attempt to solve the dependency conflict
3.111 
3.263 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

werkzeug-3.0.6-py3-none-any.whl: 2 vulnerabilities (highest severity is: 5.3)

3 participants