Is flask-cors 2.1 vulnerable?
PyPI · 4 releases from 2.1.0 to 2.1.3 · latest flask-cors is 6.0.5 · checked 18 Nov 2026
Yes: 6 known advisories
Yes. flask-cors 2.1.3, the last 2.1 release, is affected by 6 known security advisories (2 high, 4 medium), including CVE-2024-6221, CVE-2020-25032, CVE-2024-6866. Upgrade to 6.0.0 or later to fix all of them.
pip install 'flask-cors>=6.0.0'Is your project on an affected flask-cors?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting flask-cors 2.1.3
Flask-CORS vulnerable to Improper Handling of Case Sensitivity
- Affected
- <6.0.0
- Fixed in
- 6.0.0
Flask-CORS improper regex path matching vulnerability
- Affected
- <6.0.0
- Fixed in
- 6.0.0
Flask-CORS allows for inconsistent CORS matching
- Affected
- <6.0.0
- Fixed in
- 6.0.0
Flask-CORS allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default
- Affected
- <4.0.2
- Fixed in
- 4.0.2
flask-cors vulnerable to log injection when the log level is set to debug
- Affected
- <4.0.1
- Fixed in
- 4.0.1
Flask-Cors Directory Traversal vulnerability
- Affected
- <3.0.9
- Fixed in
- 3.0.9
Every flask-cors 2.1.x release
Affected: 2.1.0 to 2.1.3. Latest flask-cors: 6.0.5.
| Version | Known advisories |
|---|---|
| flask-cors 2.1.3 | CVE-2024-6866, CVE-2024-6839, CVE-2024-6844, CVE-2024-6221, CVE-2024-1681, CVE-2020-25032 |
| flask-cors 2.1.2 | CVE-2024-6866, CVE-2024-6839, CVE-2024-6844, CVE-2024-6221, CVE-2024-1681, CVE-2020-25032 |
| flask-cors 2.1.1 | CVE-2024-6866, CVE-2024-6839, CVE-2024-6844, CVE-2024-6221, CVE-2024-1681, CVE-2020-25032 |
| flask-cors 2.1.0 | CVE-2024-6866, CVE-2024-6839, CVE-2024-6844, CVE-2024-6221, CVE-2024-1681, CVE-2020-25032 |
Which of your client projects are still on flask-cors 2.1?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact flask-cors version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other flask-cors versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.