CVE-2026-33807

Source
https://cve.org/CVERecord?id=CVE-2026-33807
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33807.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-33807
Aliases
Published
2026-04-15T09:52:26.838Z
Modified
2026-07-15T01:49:00.589182904Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
@fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes
Details

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

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

Affected packages

Git / github.com/fastify/fastify-express

Affected ranges

Type
GIT
Repo
https://github.com/fastify/fastify-express
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "4.0.5"
        }
    ],
    "cpe": "cpe:2.3:a:fastify:fastify\\/express:*:*:*:*:*:node.js:*:*"
}

Affected versions

v0.*
v0.1.0
v0.2.0
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v1.*
v1.0.0
v1.1.0
v2.*
v2.0.0
v2.0.1
v2.0.2
v2.1.0
v2.2.0
v2.3.0
v3.*
v3.0.0
v4.*
v4.0.0
v4.0.1
v4.0.2
v4.0.3
v4.0.4

Database specific

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