CVE-2026-76169
published high CVSS 3.1 · 7.5fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| fastify | — | fastify4.0.0 to < 5.12.2 (affected · semver) · 5.12.2 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
Description
fastify versions >= 4.0.0 and before 5.12.2 can route a malformed URL sent under one plugin prefix to the custom not-found handler of a different sibling plugin, and invoke it without the preHandler hook declared for that handler. The internal not-found router for encapsulated handlers dispatches malformed paths through a single shared handler pointer before URL decoding, ignoring the prefix and skipping the selected handler's normal lifecycle. An unauthenticated attacker can therefore reach an authentication-protected private fallback through an unrelated public prefix and read its full response, bypassing the authentication hook and breaking prefix encapsulation. Users should upgrade to fastify 5.12.2 or later.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| fastify | fastify | 4.0.0 to < 5.12.2 (affected · semver)5.12.2 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-288 CWE-288: Authentication Bypass Using an Alternate Path or Channel
References
2Provider assertions
2openjs · cna
fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0a7297a0f04a0fbddd4b6cca25c86d7796c960560fade572db401c1ff5ac9b77
- Ingested
- 23 Sep 2026, 09:31:51 UTC
- Source record
- Official CVE record