/

CVE-2026-31904

Severity:

HIGH RISK

(7.5)

Authentication Rate Limiting / Brute-Force Protection

CVE-2026-31904

Analyzed

Vulnerability type

Category:

Authentication Rate Limiting / Brute-Force Protection Failure

CWE:

CWE-307

Impact:

Denial of Service and Brute-Force Account Compromise

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A missing rate limit on authentication requests in the WebSocket API allows attackers to send an unbounded number of login attempts.

Under load, this can be abused to overwhelm the service, suppress or mis-route legitimate charger telemetry, or perform brute-force attacks to gain unauthorized access.

Affected context

This vulnerability affects systems that expose an authentication mechanism over a WebSocket API without enforcing per-client or global rate limits.

It is most relevant where WebSocket connections are used to carry charger telemetry or similar device data alongside authentication flows.

The risk increases in deployments where network-level controls are weak, where authentication endpoints are publicly reachable, or where account lockout and anomaly detection are minimal.

Exploit preconditions

  • Attack surface: Public or semi-public WebSocket API endpoint that accepts authentication requests.
  • Required access: Network-level reachability to the WebSocket server; no prior authentication is required.
  • Trigger point: Repeated authentication attempts (e.g., login messages) sent in rapid succession over one or more WebSocket connections.
  • Why exploitation is possible: The server does not enforce rate limiting, throttling, or lockout thresholds per account, IP, device, or connection, allowing unbounded request volume and repeated credential guessing.

Why this happens

The root cause is a missing control for limiting excessive authentication attempts, aligning with CWE-307: Improper Restriction of Excessive Authentication Attempts.

The WebSocket authentication handler accepts repeated login or authentication messages without applying rate limits, backoff, or account lockout policies.

This design treats all authentication traffic as trusted in terms of volume, failing to distinguish between normal user behavior and automated, high-frequency attack traffic.

As a result, attackers can systematically attempt large numbers of credentials or flood the service with authentication requests that degrade performance and interfere with legitimate telemetry flows.

Potential impact

  • Attackers may perform high-volume brute-force attacks to guess credentials and gain unauthorized access.
  • The WebSocket service can be overwhelmed, leading to partial or full denial of service for legitimate clients.
  • Charger telemetry may be suppressed, delayed, or mis-routed under load, impacting monitoring, billing, or safety-related functions.
  • Backend authentication and logging infrastructure may experience resource exhaustion (CPU, memory, or storage) due to excessive failed attempts.
  • Security monitoring and incident response may be hindered by large volumes of noisy authentication logs.

General mitigation guidance

Effective mitigation typically focuses on enforcing rate controls around authentication flows and hardening authentication policies:

  • Apply per-IP, per-account, and per-connection rate limiting for authentication requests, including limits on burst and sustained traffic.
  • Introduce exponential backoff or temporary blocking after consecutive failed attempts, and consider configurable account lockout thresholds.
  • Separate telemetry channels from authentication-heavy traffic paths when possible, so abusive login attempts do not directly disrupt data flows.
  • Implement strong credential policies (e.g., password complexity, multi-factor authentication) to reduce brute-force feasibility.
  • Enforce least privilege for authenticated sessions, so any compromised accounts have limited impact.
  • Design default server and gateway configurations to include conservative rate limits that can be tuned based on production traffic patterns.

How teams detect issues like this

Detection focuses on identifying abnormal authentication traffic patterns and code-level weaknesses:

  • Use static and architectural reviews to verify that WebSocket authentication handlers are covered by rate limiting and lockout mechanisms similar to HTTP login endpoints.
  • During code review, look for authentication message handlers that lack references to throttling, quota, or abuse-detection components.
  • Deploy runtime monitoring to track metrics such as failed logins per account/IP, authentication requests per second, and unusual connection patterns.
  • Configure security information and event management (SIEM) systems or log analytics to flag spikes in failed authentication attempts and repeated attempts against the same identifiers.
  • Consider automated application security testing or API security gateways that can detect and enforce rate-limiting policies on WebSocket endpoints.

Sources

SourceLink
github.comgithub.com/cisagov/CSAF/blob/develop/csaf_files/OT/white/2026/icsa-26-078-06.json
cisa.govcisa.gov/news-events/ics-advisories/icsa-26-078-06
ctek.comctek.com/support

Frequently asked

questions

Yes. Any attacker with network access to the exposed WebSocket API can send large numbers of authentication requests and attempt to exploit the lack of rate limiting.

No prior authentication is needed. The attacker only needs the ability to establish WebSocket connections and send authentication messages to the affected endpoint.

Apply robust, layered rate limiting and lockout policies around authentication endpoints, ensuring that WebSocket authentication flows are protected in the same way as traditional HTTP login routes. Complement this with strong credential policies and separation of telemetry and authentication channels where feasible.

Treat authentication as a protected resource in all protocols, including WebSockets: define organization-wide standards for rate limiting, lockout thresholds, and abuse detection; enforce these via reusable middleware or gateway policies; and validate their presence during design reviews, code reviews, and security testing.

Find out what's already
exploitable in your codebase.