Security mailing lists by PureSourceCode

CVE-2021-23385

MEDIUM 6.1CVSS 3.1

Flask-Security vulnerable to Open Redirect

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.

Published
2 Aug 2022
Last modified
7 Jul 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-601
Also known as
GHSA-cg8c-gc2j-2wf7PYSEC-2026-809
Sources
NVDJSONOSV GHSA-cg8c-gc2j-2wf7JSONOSV PYSEC-2026-809JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV PyPA CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD report@snyk.io (Secondary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD flask-security_project flask-security
cpe:2.3:a:flask-security_project:flask-security:*:*:*:*:*:*:*:*
all versions
OSV PyPI flask-security <= 3.0.0
OSV PyPI flask-security < 5.5.1 5.5.1

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 2 Aug 2022)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Oct 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.