CVE-2026-133312
JSON

5.3medium

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

Severity
5.3medium CVSS:3.1 by openjs
Exploit likelihood
0.48% (higher than 43% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
openjs

Description

@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.

Affected

Product or packageVersionsReported by
@fastify/rate-limit @fastify/rate-limitfrom 11.1.0 before 11.3.0
Not affected: 11.3.0
CVE List

Classification

CWE-307CWE-367

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-133312 changed 2026-11-23CVE Terms of Use
NVDCVE-2026-133312 changed 2026-11-23Public domain