@fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| fastify | @fastify/express | unaffected |
|
No data.
| Vendor | Product | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Fastify | Fastify-express |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-hrwm-hgmj-7p9c | @fastify/express's middleware path doubling causes authentication bypass in child plugin scopes |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.447% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Fastify fastify\/express
|
|
| CPEs | cpe:2.3:a:fastify:fastify\/express:*:*:*:*:*:node.js:*:* | |
| Vendors & Products |
Fastify fastify\/express
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Fastify
Fastify fastify-express |
|
| Vendors & Products |
Fastify
Fastify fastify-express |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | @fastify/express v4.0.4 and earlier contains a path handling bug in the onRegister function that causes middleware paths to be doubled when inherited by child plugins. When a child plugin is registered with a prefix that matches a middleware path, the middleware path is prefixed a second time, causing it to never match incoming requests. This results in complete bypass of Express middleware security controls, including authentication, authorization, and rate limiting, for all routes defined within affected child plugin scopes. No special configuration or request crafting is required. Upgrade to @fastify/express v4.0.5 or later. | |
| Title | @fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes | |
| Weaknesses | CWE-436 | |
| References |
| |
| Metrics |
cvssV3_1
|