VDB
Sign up
—

PYSEC-2020-43

Quick fix

PYSEC-2020-43 — flask-cors: upgrade to the fixed version with the command below.

pip install --upgrade 'flask-cors>=3.0.9'

Details

An issue was discovered in Flask-CORS (aka CORS Middleware for Flask) before 3.0.9. It allows ../ directory traversal to access private resources because resource matching does not ensure that pathnames are in a canonical format.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/flask-cors
Introduced in: 0Fixed in: 3.0.9
Fixpip install --upgrade 'flask-cors>=3.0.9'

References