Locust: Flask-CORS allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default (CVE-2024-6221)
CVE-2024-6221 is a high-severity vulnerability in the Locust product related to the flask-cors library version 4.0.1. It causes the Access-Control-Allow-Private-Network CORS header to be set to true by default without configuration options. This misconfiguration can expose private network resources to unauthorized external access, increasing the risk of data breaches and network intrusions. The vulnerability affects Locust versions from 2.2.1 up to but not including 2.31.4_1. A patch is available to address this issue.
AI Analysis
Technical Summary
The vulnerability CVE-2024-6221 exists in corydolphin/flask-cors version 4.0.1, which is used by Locust. It causes the Access-Control-Allow-Private-Network CORS header to be enabled by default, allowing external origins to access private network resources without explicit configuration. This behavior can lead to unauthorized access to sensitive internal services. The affected Locust versions are >=2.2.1 and <2.31.4_1. The CVSS v3.1 score is 7.5, indicating high severity, with network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact. A patch is available to remediate this issue.
Potential Impact
The vulnerability allows unauthorized external parties to access private network resources through CORS misconfiguration. This can lead to data breaches and unauthorized access to sensitive information within internal networks. The confidentiality of private network resources is at high risk, although integrity and availability are not impacted according to the CVSS vector.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Locust to a version later than or equal to 2.31.4_1 where the issue is fixed. Applying the official patch will prevent the Access-Control-Allow-Private-Network header from being set to true by default, eliminating the exposure risk.
Locust: Flask-CORS allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default (CVE-2024-6221)
Description
CVE-2024-6221 is a high-severity vulnerability in the Locust product related to the flask-cors library version 4.0.1. It causes the Access-Control-Allow-Private-Network CORS header to be set to true by default without configuration options. This misconfiguration can expose private network resources to unauthorized external access, increasing the risk of data breaches and network intrusions. The vulnerability affects Locust versions from 2.2.1 up to but not including 2.31.4_1. A patch is available to address this issue.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2024-6221 exists in corydolphin/flask-cors version 4.0.1, which is used by Locust. It causes the Access-Control-Allow-Private-Network CORS header to be enabled by default, allowing external origins to access private network resources without explicit configuration. This behavior can lead to unauthorized access to sensitive internal services. The affected Locust versions are >=2.2.1 and <2.31.4_1. The CVSS v3.1 score is 7.5, indicating high severity, with network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact. A patch is available to remediate this issue.
Potential Impact
The vulnerability allows unauthorized external parties to access private network resources through CORS misconfiguration. This can lead to data breaches and unauthorized access to sensitive information within internal networks. The confidentiality of private network resources is at high risk, although integrity and availability are not impacted according to the CVSS vector.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Locust to a version later than or equal to 2.31.4_1 where the issue is fixed. Applying the official patch will prevent the Access-Control-Allow-Private-Network header from being set to true by default, eliminating the exposure risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-locust-CVE-2024-6221
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6aac8dfb55bf5e2cf5490346
Added to database: 09/18/2026, 01:03:55 UTC
Last enriched: 09/18/2026, 01:30:22 UTC
Last updated: 09/18/2026, 01:30:22 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.