CVE-2020-28724: Open Redirect in werkzeug

werkzeug Updated 02 Oct 2025

Summary

20/04/2021
Yes i
Moderate
6.1

CVE-2020-28724: Open Redirect in werkzeug. Affects werkzeug versions < 0.11.6. Fixed in 0.11.6. How to fix ↓

Also tracked for

The same CVE-2020-28724 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Werkzeug is a Python library that provides essential utilities for building web applications. It is widely used for its simplicity and flexibility in handling HTTP requests and responses. However, versions prior to 0.11.6 are susceptible to an open redirect vulnerability. This vulnerability allows an attacker to manipulate the URL and redirect users to malicious websites by exploiting a double slash in the URL.

Vulnerability Detail

The open redirect vulnerability in werkzeug poses a moderate risk to web applications. By inserting a double slash in the URL, an attacker can deceive users into visiting malicious websites that appear legitimate. This can lead to various attacks, such as phishing, malware distribution, or stealing sensitive information. The vulnerability has been assigned the CVE identifier CVE-2020-28724 and has a CVSS score of 6.1.

How To Fix

Latest published version: 3.1.9 as of 22 Oct 2026

pip install --upgrade "werkzeug==3.1.9"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.11.6

This is the first release that contains the fix.

pip install --upgrade "werkzeug==0.11.6"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented. Developers can manually validate and sanitize the URL input to prevent the insertion of double slashes. This can be achieved by using URL parsing and validation libraries or implementing custom validation logic.

Conclusion

In conclusion, the open redirect vulnerability in werkzeug can be mitigated by upgrading to version 0.11.6 or later. Developers should promptly update their dependencies to ensure the security of their web applications. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for werkzeug →

Share this vulnerability

FAQ

An open redirect vulnerability allows an attacker to manipulate a URL and redirect users to arbitrary websites. This can be exploited to deceive users into visiting malicious websites that appear legitimate.

The vulnerability in werkzeug arises from a failure to properly validate and sanitize URL inputs. By inserting a double slash in the URL, an attacker can bypass validation checks and redirect users to malicious websites.

The open redirect vulnerability in werkzeug can lead to various attacks, including phishing, malware distribution, and the theft of sensitive information. It poses a moderate risk to web applications and their users.

Yes, this vulnerability has been assigned the CVE identifier CVE-2020-28724.

The CVSS score of this vulnerability is 6.1, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for werkzeug.

How To Fix

Latest published version: 3.1.9 as of 22 Oct 2026

pip install --upgrade "werkzeug==3.1.9"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.11.6

This is the first release that contains the fix.

pip install --upgrade "werkzeug==0.11.6"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback