CVE-2026-76169
HIGH 7.5CVSS 3.1fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers
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.
- Published
- 4 Sep 2026
- Last modified
- 1 Oct 2026
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- NVD status
- Analyzed
- Weakness
- CWE-288
- Also known as
- GHSA-p68q-wchp-6fh7
- Sources
- NVDJSONOSV GHSA-p68q-wchp-6fh7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastify | fastifycpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 5.12.2 | 5.12.2 |
| OSV | npm | fastify | >= 4.0.0, < 5.12.2 | 5.12.2 |
References
- https://cna.openjsf.org/security-advisories.html · Third Party Advisory, WEB
- https://github.com/fastify/fastify/security/advisories/GHSA-p68q-wchp-6fh7 · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-76169 · ADVISORY
- https://github.com/fastify/fastify/commit/93c239a380f3f2778bb7565fcdf777e91cfe1fbc · WEB
- https://github.com/fastify/fastify · PACKAGE
- https://github.com/fastify/fastify/releases/tag/v5.12.2 · WEB
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 4 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 30 Sep 2026)