CVE-2026-132128

Source
https://cve.org/CVERecord?id=CVE-2026-132128
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-132128.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-132128
Aliases
  • GHSA-r5h5-r25j-5vhr
Published
2026-11-19T11:29:52Z
Modified
2026-11-19T13:00:09Z
Severity
  • 7.4 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
@fastify/middie vulnerable to path-scoped middleware bypass via Unicode case folding
Details

@fastify/middie is the middleware engine that adds Express and Connect style middleware support to Fastify. In versions up to and including 9.3.6, middie does not honor the router's caseSensitive setting and matches path-scoped middleware mount paths with a case-insensitive regular expression that does not fold non-ASCII characters, while Fastify's router, when caseSensitive is set to false, lowercases the request path with a Unicode-aware conversion that maps the KELVIN SIGN character (U+212A) to the ASCII letter k. A request that spells a k in a protected mount path as the percent-encoded KELVIN SIGN is therefore routed to the protected handler while the middleware mounted on that path, such as authentication, authorization, or rate limiting, never matches and is skipped, letting an unauthenticated client reach the handler. Only applications that set caseSensitive to false and protect a mount path containing the letter k are affected. The issue is fixed in @fastify/middie 9.3.7, and users should upgrade to 9.3.7 or later. As a workaround, enforce authorization in a Fastify hook such as preHandler that runs after routing, or keep routing case-sensitive, which is the default.

Database specific
{
    "cna_assigner":  "openjs",
    "cwe_ids":  [
        "CWE-178",
        "CWE-863"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/132xxx/CVE-2026-132128.json"
}
References

Affected packages

Git / github.com/fastify/middie

Affected ranges

Type
GIT
Repo
https://github.com/fastify/middie
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "9.3.7"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        }
    ]
}

Affected versions

v0.*
v0.2.0
v0.3.0
v1.*
v1.0.0
v1.1.0
v2.*
v2.0.0
v2.1.0
v2.1.1
v3.*
v3.0.0
v3.1.0
v3.2.0
v3.2.1
v4.*
v4.0.0
v4.0.1
v4.1.0
v5.*
v5.0.0
v5.1.0
v5.2.0
v5.3.0
v5.4.0
v6.*
v6.0.0
v7.*
v7.0.0
v8.*
v8.0.0
v8.1.0
v8.2.0
v8.3.0
v8.3.1
v9.*
v9.0.0
v9.0.1
v9.0.2
v9.0.3
v9.1.0
v9.2.0
v9.3.0
v9.3.1
v9.3.2
v9.3.3
v9.3.4
v9.3.5
v9.3.6

Database specific

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