Flask-AppBuilder Open Redirect Vulnerability via Host Header Manipulation

Vulnerability

A vulnerability allowing open redirects has been identified in Flask-AppBuilder versions prior to 4.6.2. This issue arises from the application not properly validating the Host header in HTTP requests, which could enable a malicious unauthenticated actor to redirect users to untrusted domains. The vulnerability has been addressed in version 4.6.2 by introducing the FAB_SAFE_REDIRECT_HOSTS configuration variable, allowing administrators to specify which domains are safe for redirection. As a workaround, a reverse proxy can be used to enforce trusted host headers.

Impact

Exploitation of this vulnerability allows for open redirect attacks, where users can be sent to malicious websites under the guise of a trusted domain.

Reproduction

To reproduce this vulnerability, send an HTTP request to a Flask-AppBuilder application running a version prior to 4.6.2. Manipulate the Host header to include an untrusted domain. If the application redirects to this domain, the vulnerability is present.

Remediation

Flask-AppBuilder users should upgrade to version 4.6.2 or later. For those unable to upgrade, using a reverse proxy to enforce trusted host headers is recommended.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
3.4
impact
0.8
exploitability
7.6
remediation
8.3
relevance
0.0
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.