Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111883 Overview
CVE-2026-111883 is a Cross-Site Request Forgery (CSRF) vulnerability affecting Locust load testing framework through version 2.46.7. The flaw resides in the web UI, where the /stop and /stats/reset endpoints accept unauthenticated GET requests without CSRF protection. Attackers can lure an authenticated operator to a malicious page that triggers cross-site GET requests to a running Locust instance. These requests terminate active load test swarms and wipe recorded performance statistics. The vulnerability is classified under CWE-352 and tracks as a state-changing operation exposed via a safe HTTP method.
Critical Impact
Remote attackers can stop running load tests and reset performance statistics by tricking an operator into visiting a malicious web page.
Affected Products
- Locust versions up to and including 2.46.7
- Locust web UI component (locust/web.py)
- Locust Redux API client (locust/webui/src/redux/api/swarm.ts)
Discovery Timeline
- 2026-10-19 - CVE-2026-111883 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-111883
Vulnerability Analysis
Locust is a Python-based distributed load testing framework. Its web interface exposes HTTP endpoints that control the lifecycle of a load test. In vulnerable builds, the /stop route halts active swarm execution, and the /stats/reset route clears recorded statistics. Both endpoints are registered to respond to HTTP GET requests, which browsers issue automatically when loading images, scripts, or links from third-party origins.
Because the endpoints lack anti-CSRF tokens, SameSite cookie restrictions, or request-origin validation, any origin can issue a cross-site GET and have the browser attach the operator's session context. An attacker only needs to know or guess the Locust UI URL to disrupt testing operations.
Root Cause
The root cause is a violation of HTTP method semantics as described in RFC 9110. State-changing actions were implemented behind GET handlers rather than POST handlers, and no CSRF token validation was applied. This design made the control plane trivially reachable through cross-origin requests embedded in HTML tags such as <img> or <iframe>.
Attack Vector
Exploitation requires user interaction. An operator with an authenticated Locust session visits an attacker-controlled page. That page references the Locust endpoint through a tag that triggers a background GET. The browser issues the request to the Locust UI, the server executes the action, and the load test stops or its metrics are cleared.
# Security patch in locust/web.py
# Source: https://github.com/locustio/locust/commit/3a1d0caa5bde59494ede55f513fcb4becbf406a0
else:
return jsonify({"success": False, "message": "No runner", "host": environment.host})
- @app_blueprint.route("/stop")
+ @app_blueprint.route("/stop", methods=["POST"])
@self.auth_required_if_enabled
def stop() -> Response:
if self._swarm_greenlet is not None:
// Security patch in locust/webui/src/redux/api/swarm.ts
// Source: https://github.com/locustio/locust/commit/3a1d0caa5bde59494ede55f513fcb4becbf406a0
}),
resetStats: builder.mutation<void, void>({
- query: () => ({ url: 'stats/reset' }),
+ query: () => ({ url: 'stats/reset', method: 'POST' }),
invalidatesTags: ['stats'],
}),
stopSwarm: builder.mutation<void, void>({
- query: () => ({ url: 'stop' }),
+ query: () => ({ url: 'stop', method: 'POST' }),
}),
}),
});
The patch restricts both endpoints to the POST method, breaking trivial cross-origin GET-based exploitation.
Detection Methods for CVE-2026-111883
Indicators of Compromise
- Unexpected GET requests to /stop or /stats/reset paths on Locust master hosts.
- HTTP Referer headers on control endpoints pointing to external or unknown domains.
- Abrupt termination of running swarms with no corresponding operator action in the UI.
- Statistics counters resetting to zero mid-test without a planned reset event.
Detection Strategies
- Review Locust master access logs for GET requests to state-changing endpoints and correlate against operator session activity.
- Alert when Referer or Origin headers on Locust UI requests do not match the expected internal management domain.
- Baseline normal test duration patterns and flag anomalies where swarms stop earlier than configured.
Monitoring Recommendations
- Forward Locust web UI access logs to a centralized logging platform for correlation with endpoint and browser telemetry.
- Monitor outbound browser traffic from operator workstations for connections to untrusted sites during active test windows.
- Instrument Locust deployments behind a reverse proxy that records full request metadata, including method, origin, and referer.
How to Mitigate CVE-2026-111883
Immediate Actions Required
- Upgrade Locust to a release that includes the fix from commit 3a1d0ca, which converts /stop and /stats/reset to POST-only handlers.
- Restrict access to the Locust web UI to trusted management networks or a VPN, removing exposure to arbitrary browsing sessions.
- Enable the built-in --web-auth authentication option and ensure operators do not browse untrusted sites during authenticated sessions.
Patch Information
The fix is implemented in pull request #3567 and merged via commit 3a1d0caa5bde59494ede55f513fcb4becbf406a0. The patch changes the Flask route decorators in locust/web.py to accept only POST and updates the Redux API client in locust/webui/src/redux/api/swarm.ts to issue POST requests. Review the VulnCheck CSRF Advisory for Locust for additional vendor context.
Workarounds
- Place Locust behind a reverse proxy that rejects GET requests to /stop and /stats/reset until an upgrade can be deployed.
- Configure the proxy to require a custom header on control endpoints that browsers cannot set cross-origin without CORS preflight.
- Isolate the Locust UI on a management-only network segment inaccessible from workstations used for general web browsing.
# Example nginx reverse proxy rule to block GET on state-changing endpoints
location ~ ^/(stop|stats/reset)$ {
if ($request_method = GET) {
return 405;
}
proxy_pass http://locust_backend;
proxy_set_header Host $host;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

