# CVE-2026-76169: fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers

- Severity: High 7.5 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-09-04T09:51:03.556Z
- Modified: 2026-10-01T00:00:05.665Z
- Also known as: GHSA-p68q-wchp-6fh7
- Weaknesses: CWE-288
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- fastify fastify: from 4.0.0 before 5.12.2 (not affected: 5.12.2)
- fastify (npm): from 4.0.0 before 5.12.2

## Every score

- openjs: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/fastify/fastify/security/advisories/GHSA-p68q-wchp-6fh7> (mitigation, vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (third-party-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)

## Sources

- CVE List: [CVE-2026-76169](https://www.cve.org/CVERecord?id=CVE-2026-76169), CVE Terms of Use, modified 2026-09-04
- GitHub Advisory Database: [GHSA-p68q-wchp-6fh7](https://github.com/advisories/GHSA-p68q-wchp-6fh7), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-76169](https://nvd.nist.gov/vuln/detail/CVE-2026-76169), Public domain, modified 2026-09-15

---

Page: https://cve.day/CVE-2026-76169 · Whole record: https://cve.day/CVE-2026-76169.json · Rebuilt by cve.day 2026-11-25T22:59:36.268Z
