MEDIUM 4.3 PyPI

Flask-AppBuilder open redirect vulnerability using HTTP host injection

GHSA-99pm-ch96-ccp2 · CVE-2025-32962 · PYSEC-2026-1379

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

Impact

Flask-AppBuilder prior to 4.6.2 would allow for a malicious unauthenticated actor to perform an open redirect by manipulating the Host header in HTTP requests.

Patches

Flask-AppBuilder 4.6.2 introduced the FAB_SAFE_REDIRECT_HOSTS configuration variable, which allows administrators to explicitly define which domains are considered safe for redirection.

Examples:

FAB_SAFE_REDIRECT_HOSTS = ["yourdomain.com", "sub.yourdomain.com", "*.yourcompany.com"]

Workarounds

Use a Reverse Proxy to Enforce Trusted Host Headers

References

Are there any links users can visit to find out more?

Ready to move

Start Securing

Free, no credit card | First findings in minutes