@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.0 through 4.0.9, when Fastify routing is configured to be case-insensitive, the router folds the request path to lower case in a way that maps certain non-ASCII Unicode characters to ASCII letters, but @fastify/express matches Express mount paths against the decoded path without applying the same folding. The two disagree, so a request that spells a letter of a mount path with an equivalent Unicode character is routed to the protected handler while the path-scoped middleware mounted on that path never matches and is skipped. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, though only when the application enables case-insensitive routing and the mount path contains an affected letter. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.
PUBLISHED5.2CWE-178CWE-863
@fastify/express vulnerable to path-scoped middleware bypass via Unicode case folding
Problem type
Affected products
@fastify/express
@fastify/express
< 4.0.10 - AFFECTED
4.0.10 - UNAFFECTED
References
github.com
https://github.com/fastify/fastify-express/security/advisories/GHSA-6rmc-f24g-hmp6
cna.openjsf.org
https://cna.openjsf.org/security-advisories.html
JSON source
https://cveawg.mitre.org/api/cve/CVE-2026-129850Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-129850",
"assignerOrgId": "ce714d77-add3-4f53-aff5-83d477b104bb",
"assignerShortName": "openjs",
"dateUpdated": "2026-11-21T17:05:52.983Z",
"dateReserved": "2026-11-16T12:28:25.792Z",
"datePublished": "2026-11-21T17:05:52.983Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "ce714d77-add3-4f53-aff5-83d477b104bb",
"shortName": "openjs",
"dateUpdated": "2026-11-21T17:05:52.983Z"
},
"title": "@fastify/express vulnerable to path-scoped middleware bypass via Unicode case folding",
"descriptions": [
{
"lang": "en",
"value": "@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.0 through 4.0.9, when Fastify routing is configured to be case-insensitive, the router folds the request path to lower case in a way that maps certain non-ASCII Unicode characters to ASCII letters, but @fastify/express matches Express mount paths against the decoded path without applying the same folding. The two disagree, so a request that spells a letter of a mount path with an equivalent Unicode character is routed to the protected handler while the path-scoped middleware mounted on that path never matches and is skipped. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, though only when the application enables case-insensitive routing and the mount path contains an affected letter. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.",
"supportingMedia": [
{
"type": "text/html",
"base64": false,
"value": "@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.0 through 4.0.9, when Fastify routing is configured to be case-insensitive, the router folds the request path to lower case in a way that maps certain non-ASCII Unicode characters to ASCII letters, but @fastify/express matches Express mount paths against the decoded path without applying the same folding. The two disagree, so a request that spells a letter of a mount path with an equivalent Unicode character is routed to the protected handler while the path-scoped middleware mounted on that path never matches and is skipped. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, though only when the application enables case-insensitive routing and the mount path contains an affected letter. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later."
}
]
}
],
"affected": [
{
"vendor": "@fastify/express",
"product": "@fastify/express",
"defaultStatus": "unaffected",
"versions": [
{
"version": "4.0.0",
"status": "affected",
"versionType": "semver",
"lessThan": "4.0.10"
},
{
"version": "4.0.10",
"status": "unaffected",
"versionType": "semver"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-178: Improper Handling of Case Sensitivity",
"cweId": "CWE-178",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"lang": "en",
"description": "CWE-863: Incorrect Authorization",
"cweId": "CWE-863",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://github.com/fastify/fastify-express/security/advisories/GHSA-6rmc-f24g-hmp6"
},
{
"url": "https://cna.openjsf.org/security-advisories.html"
}
],
"metrics": [
{
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
],
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N",
"baseScore": 7.4,
"baseSeverity": "HIGH"
}
}
],
"credits": [
{
"lang": "en",
"value": "mcollina",
"type": "remediation developer"
},
{
"lang": "en",
"value": "UlisesGascon",
"type": "remediation reviewer"
},
{
"lang": "en",
"value": "rootsys-research",
"type": "reporter"
}
]
}
}
}