Improper Validation Affecting django-cors-headers package, versions [,3.0.0)
Snyk CVSS
Attack Complexity
High
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-DJANGOCORSHEADERS-564347
- published 1 Apr 2020
- disclosed 10 May 2019
- credit Unknown
How to fix?
Upgrade django-cors-headers
to version 3.0.0 or higher.
Overview
django-cors-headers is a Django app for handling the server headers required for Cross-Origin Resource Sharing (CORS)
Affected versions of this package are vulnerable to Improper Validation. CORS middleware allows requests between schemes provided by a CORS_ORIGIN_WHITELIST
, and it is possible to allow insecure schemas such as http
. This is remediated in the fixed version.