Read the docs

Race condition in @fastify/rate-limit weakens failed-login limits

Priority LOW 30CWE-307Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-307.

Summary

@fastify/rate-limit from 11.1.0 before 11.3.0 is affected. Its documented manual failed-login flow checks the limiter, runs the password check, and consumes a slot only afterward, so concurrent requests can all pass the check before any slot is used (CWE-367). An unauthenticated remote attacker can send a burst of login requests and run more failed attempts than the configured limit. The default per-request limiter is not affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

Description from the CNA

@fastify/rate-limit is the rate-limiting plugin for the Fastify web framework. Starting in version 11.1.0, the plugin documented a manual flow for limiting failed login attempts that peeks at the limiter, runs the password check, and consumes a slot only on failure. Because the peek and the consume are two separate store operations with the password check in between, concurrent requests can all pass the peek before any slot is consumed, so in versions 11.1.0 through 11.2.2 a burst of requests runs far more failed attempts than the configured limit, and the sequential path also allowed one attempt more than configured. The default per-request limiter is not affected. The issue is fixed in @fastify/rate-limit 11.3.0, which makes the manual flow atomic by reserving a slot in a single operation and refunding it only on success, and users should upgrade to 11.3.0 or later.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00273 12th percentileScored 2026-11-30
Fix Fixed @fastify/rate-limit (@fastify/rate-limit): 11.3.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
@fastify/rate-limit@fastify/rate-limit11.1.0 to before 11.3.011.3.0Patch availableCNA
  • @fastify/rate-limit Vendor@fastify/rate-limit Affected 11.1.0 to before 11.3.0 Fixed in 11.3.0 Patch available CNA

Remediation

Upgrade @fastify/rate-limit to version 11.3.0 or later, which makes the manual flow atomic by reserving a slot in a single operation.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

  • Fix · CNA @fastify/rate-limit (@fastify/rate-limit) Fixed in 11.3.0

Timeline

  1. 2026-11-21 Threatist record created from CVE-2026-133312
  2. 2026-11-23 CISA SSVC decision points changed

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences