Advisory

DEBIAN-CVE-2021-23385

Also known as: CVE-2021-23385

Summary

The record has no summary.

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.

Severity

Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2022-08-02 14:15 UTC
Modified
2026-10-23 18:03 UTC

Affected packages and fixes

flask-security

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 5.0.2-1 (ecosystem)

Fixed versions

5.0.2-1

Fix

  • Fixed version 5.0.2-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

flask-security

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 5.0.2-1 (ecosystem)

Fixed versions

5.0.2-1

Fix

  • Fixed version 5.0.2-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

flask-security

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 5.0.2-1 (ecosystem)

Fixed versions

5.0.2-1

Fix

  • Fixed version 5.0.2-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences