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

Status: published. Published: 2026-11-21. Updated: 2026-11-23.

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

## Remediation

- fix: @fastify/rate-limit (npm): GitHub reports patched versions 11.3.0. Check the advisory for the affected release branch. (source: GitHub GHSA-24mh-2vvh-5r45) — https://github.com/fastify/fastify-rate-limit/security/advisories/GHSA-24mh-2vvh-5r45

## Affected products and versions

- @fastify/rate-limit / @fastify/rate-limit (@fastify/rate-limit): ≥ 11.1.0; < 11.3.0 (affected, semver); 11.3.0 (unaffected, semver). Source: CNA: openjs
-  / @fastify/rate-limit (@fastify/rate-limit): >= 11.1.0, < 11.3.0 (affected, GitHub advisory range). Source: GitHub GHSA-24mh-2vvh-5r45

## Severity and prioritization

- CVSS 3.1: 5.3 (medium); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N; source: CNA: openjs

- CVSS 3.1: 5.3 (medium); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N; source: NVD: ce714d77-add3-4f53-aff5-83d477b104bb

- CISA KEV: No listing in collected sources

- EPSS: 0.37% as of 2026-11-23; percentile 31.23%

- SSVC: exploitation none; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-307, CWE-367

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/fastify/fastify-rate-limit/security/advisories/GHSA-24mh-2vvh-5r45 (CNA: openjs)

- https://cna.openjsf.org/security-advisories.html (CNA: openjs)

- https://cna.openjsf.org/security-advisories.html (ce714d77-add3-4f53-aff5-83d477b104bb)

- https://github.com/fastify/fastify-rate-limit/security/advisories/GHSA-24mh-2vvh-5r45 (ce714d77-add3-4f53-aff5-83d477b104bb)

- https://github.com/fastify/fastify-rate-limit/security/advisories/GHSA-24mh-2vvh-5r45 (GitHub Security Advisories; advisory)

## Provenance

- CNA: openjs: https://www.cve.org/CVERecord?id=CVE-2026-133312; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-133312; retrieved 2026-11-21; source updated 2026-11-21

- GitHub Security Advisories: https://github.com/fastify/fastify-rate-limit/security/advisories/GHSA-24mh-2vvh-5r45; retrieved 2026-11-23; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-133312; retrieved 2026-11-23; source updated Not reported

Revision: 9fddb1f5b426ef156e53a8853bf816dcd5e41baba6c14884a18e99d99c3113eb

Canonical: https://y2.dev/cve/CVE-2026-133312

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.