PYSEC-2026-809

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/flask-security/PYSEC-2026-809.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-809
Aliases
Published
2026-07-07T10:17:22.496909Z
Modified
2026-07-07T11:45:45.877626931Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Flask-Security vulnerable to Open Redirect
Details

This affects all versions of package Flask-Security. When using the get_post_logout_redirect and get_post_login_redirect functions, it is possible to bypass URL validation and redirect a user to an arbitrary URL by providing multiple back slashes such as \\\evil.com/path. This vulnerability is only exploitable if an alternative WSGI server other than Werkzeug is used, or the default behaviour of Werkzeug is modified using 'autocorrect_location_header=False.

Note: Flask-Security is not maintained anymore.

References

Affected packages

PyPI / flask-security

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.5.1

Affected versions

1.*
1.2.0
1.2.1
1.2.2
1.2.3
1.5.0
1.5.1
1.5.2
1.5.3
1.5.4
1.6.0
1.6.1
1.6.2
1.6.3
1.6.4
1.6.5
1.6.6
1.6.7
1.6.8
1.6.9
1.7.0
1.7.1
1.7.2
1.7.3
1.7.4
1.7.5
3.*
3.0.0

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/flask-security/PYSEC-2026-809.yaml"