Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.3CVE-2026-133312

CVE-2026-133312: @fastify/rate-limit vulnerable to failed-login limit bypass via a race condition in the documented flow

@fastify/rate-limit @fastify/rate-limit

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-133312: medium-severity vulnerability (CVSS 5.3) in @fastify/rate-limit @fastify/rate-limit.

What happened

Original description from the source: @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

Medium severity, CVSS 5.3.

Affected products and versions

@fastify/rate-limit @fastify/rate-limit >= 11.1.0, < 11.3.0; @fastify/rate-limit @fastify/rate-limit 11.3.0 (fixed in 11.3.0)

ProductVersionsFixed in
@fastify/rate-limit @fastify/rate-limit>= 11.1.0, < 11.3.0—
@fastify/rate-limit @fastify/rate-limit11.3.011.3.0

Action recommended by the source

Upgrade to a fixed version: 11.3.0.

Fixed in: 11.3.0

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-307, CWE-367

Relevant change history

  1. Published

    Preliminary advisory published.