Skip to main content

Locust: Flask-CORS allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default (CVE-2024-6221)

0
High
Published: 08/13/2026 (08/13/2026, 17:03:02 UTC)
Source: GCVE Database
Product: locust

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

Homebrewmore threats →ghsa
locust
pkg:brew/locust
Affected versions
>=2.2.1 <2.31.4_1

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

AILast updated: 09/18/2026, 01:30:22 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses