CVE-2021-32805 URL Redirection to Untrusted Site ('Open Redirect') in Flask-AppBuilder

High 7.2 Published Updated

An attacker can craft URLs to redirect users to malicious sites in Flask-AppBuilder applications using OAuth, requiring an upgrade to fix.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-32805?

CVE-2021-32805 is a high-severity vulnerability in dpgaspar Flask-AppBuilder, published on 8 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Flask-AppBuilder is an application development framework, built on top of Flask. In affected versions if using Flask-AppBuilder OAuth, an attacker can share a carefully crafted URL with a trusted domain for an application built with Flask-AppBuilder, this URL can redirect a user to a malicious site. This is an open redirect vulnerability. To resolve this issue upgrade to Flask-AppBuilder 3.2.2 or above. If upgrading is infeasible users may filter HTTP traffic containing `?next={next-site}` where the `next-site` domain is different from the application you are protecting as a workaround.

Weakness: CWE-601

Which versions are affected by CVE-2021-32805?

3 open source packages ship an affected version, including flask-appbuilder and Flask-AppBuilder. It affects 1 product.

PackageAffectedFixed in
flask-appbuilder PyPIAll versions3.3.2
flask-appbuilder PyPIAll versions3.3.2
Flask-AppBuilder PyPIAll versions3.3.2

Products include Dpgaspar Flask-Appbuilder.

How do I fix CVE-2021-32805?

Upgrade flask-appbuilder to 3.3.2 or later.

Is CVE-2021-32805 being exploited?

There is no known exploitation of CVE-2021-32805 in the wild and no public exploit code.

Sources

Also known as GHSA-624f-cqvr-3qw4, PYSEC-2021-359.

Is CVE-2021-32805 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free