CVE-2026-133312

Source
https://cve.org/CVERecord?id=CVE-2026-133312
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-133312.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-133312
Aliases
  • GHSA-24mh-2vvh-5r45
Published
2026-11-21T16:54:52Z
Modified
2026-11-21T18:00:18Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
@fastify/rate-limit vulnerable to failed-login limit bypass via a race condition in the documented flow
Details

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

Database specific
{
    "cna_assigner":  "openjs",
    "cwe_ids":  [
        "CWE-307",
        "CWE-367"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133312.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "11.1.0"
                        },
                        {
                            "fixed":  "11.3.0"
                        }
                    ],
                    "source":  "AFFECTED_FIELD",
                    "strategy":  "StandardRange"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/fastify/fastify-rate-limit

Affected ranges

Type
GIT
Repo
https://github.com/fastify/fastify-rate-limit
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "11.1.0"
                },
                {
                    "last_affected":  "11.2.2"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}

Affected versions

v11.*
v11.1.0
v11.2.0
v11.2.1
v11.2.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-133312.json"