CVE-2021-23385

MediumCVSS 6.1/10Last modified Jun 17, 2026

Description

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.

Metrics

CVSS 3.1 6.1/10CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Aug 2, 2022
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2021

CVE-2021-233866.5This affects the package dns-packet before 5.2.2. It creates buffers with allocUnsafe and does not always fill them before forming network pCVE-2021-233876.1The package trailing-slash before 2.0.1 are vulnerable to Open Redirect via the use of trailing double slashes in the URL when accessing theCVE-2021-233885.3The package forms before 1.2.1, from 1.3.0 and before 1.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via email validatCVE-2021-233899.8The package total.js before 3.4.9 are vulnerable to Arbitrary Code Execution via the U.set() and U.get() functions.CVE-2021-23394.9Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: DDL). Supported versions that are affected are 8.0.25 and prioCVE-2021-233909.8The package total4 before 0.0.43 are vulnerable to Arbitrary Code Execution via the U.set() and U.get() functions.CVE-2021-233917.1This affects all versions of package calipso. It is possible for a malicious module to overwrite files on an arbitrary file system through tCVE-2021-233927.5The package locutus before 2.0.15 are vulnerable to Regular Expression Denial of Service (ReDoS) via the gopher_parsedir function.CVE-2021-233935.4This affects the package Flask-Unchained before 0.9.0. When using the the _validate_redirect_url function, it is possible to bypass URL valiCVE-2021-233949.8The package studio-42/elfinder before 2.1.58 are vulnerable to Remote Code Execution (RCE) via execution of PHP code in a .phar file. NOTE: CVE-2021-233955.3This affects all versions of package nedb. The library could be tricked into adding or modifying properties of Object.prototype using a __prCVE-2021-233969.8All versions of package lutils are vulnerable to Prototype Pollution via the main (merge) function.
CVE-2021-23385: Medium severity, CVSS 6.1 | Vulnix