CVE-2016-1000001: Open Redirect Vulnerability in flask-oidc

flask-oidc Updated 02 Oct 2025

Summary

07/10/2016
Yes i
High
7.4

CVE-2016-1000001: flask-oidc version 0.1.2 and earlier is vulnerable to an open redirect. Affects flask-oidc versions < 1.0.0. Fixed in 1.0.0. How to fix ↓

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

flask-oidc is a Python package available on PyPI that provides OpenID Connect (OIDC) support for Flask applications. It allows developers to integrate OIDC authentication into their Flask-based web applications. However, versions 0.1.2 and earlier of flask-oidc are vulnerable to an open redirect attack.

Vulnerability Detail

The open redirect vulnerability in flask-oidc allows an attacker to redirect users to malicious websites by manipulating the redirect_uri parameter during the OIDC authentication flow. By exploiting this vulnerability, an attacker can trick users into visiting a URL that appears legitimate but actually leads to a malicious site. This can result in various consequences, such as phishing attacks, credential theft, or the execution of arbitrary code on the user's system.

How To Fix

Minimum fixed version

1.0.0

This is the first release that contains the fix.

pip install --upgrade "flask-oidc==1.0.0"

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

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of flask-oidc as soon as possible.

Conclusion

In conclusion, flask-oidc versions 0.1.2 and earlier are vulnerable to an open redirect attack. Developers should upgrade to version 1.0.0 or later to fix this vulnerability. It is important to prioritize the security of your Flask applications and protect users from potential attacks. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for flask-oidc →

Share this vulnerability

FAQ

You can check the version of flask-oidc by running the following command in your project's virtual environment:

pip show flask-oidc

While manual validation of the redirect_uri parameter can provide some level of protection, it is recommended to upgrade to the fixed version of flask-oidc. Manual validation may introduce implementation complexities and potential bypasses if not done correctly.

No, only versions 0.1.2 and earlier of flask-oidc are vulnerable to this open redirect issue. Versions 1.0.0 and later have addressed the vulnerability.

The open redirect vulnerability in flask-oidc can lead to various consequences, including phishing attacks, credential theft, and the execution of arbitrary code on the user's system. It is crucial to fix this vulnerability to protect users and maintain the integrity of the application.

You can find more information about this vulnerability, including its technical details and the fixed version, in the official advisory available at: https://github.com/pypa/advisory-database/blob/main/vulns/flask-oidc/PYSEC-2016-25.yaml

References

How To Fix

Minimum fixed version

1.0.0

This is the first release that contains the fix.

pip install --upgrade "flask-oidc==1.0.0"

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