# CVE-2026-85184: @fastify/middie vulnerable to path-scoped middleware bypass via absolute-form request target

- Severity: Critical 9.1 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-09-04T09:15:51.216Z
- Modified: 2026-09-15T20:02:28.677Z
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: openjs

## Description

@fastify/middie versions >= 9.1.0 and before 9.3.4 decide whether to run path-scoped middleware by matching against the raw request target, while the Fastify router resolves an absolute-form request target to its path before dispatching. Because the two layers evaluate different strings, a request using an absolute-form target reaches the route handler while the path-scoped middleware, such as authentication or authorization, is skipped. An unauthenticated network attacker can use this to bypass path-based access controls in a Fastify application that relies on middie for those controls. Users should upgrade to @fastify/middie 9.3.4 or later.

(As written by CVE List.)

## Affected

- @fastify/middie @fastify/middie: from 9.1.0 before 9.3.4 (not affected: 9.3.4)
- fastify fastify/middie: from 9.1.0 before 9.3.4

## References

- <https://github.com/fastify/middie/security/advisories/GHSA-hx87-8wv7-pjv8> (mitigation, vendor-advisory)
- <https://cna.openjsf.org/security-advisories.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-85184](https://www.cve.org/CVERecord?id=CVE-2026-85184), CVE Terms of Use, modified 2026-09-04
- NVD: [CVE-2026-85184](https://nvd.nist.gov/vuln/detail/CVE-2026-85184), Public domain, modified 2026-09-15

---

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