# CVE-2026-6270: @fastify/middie vulnerable to middleware authentication bypass in child plugin scopes

- 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.51%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-16T13:44:46.322Z
- Modified: 2026-07-08T08:14:41.365Z
- Also known as: GHSA-72c6-fx6q-fr5w
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: openjs

## Description

@fastify/middie versions 9.3.1 and earlier do not register inherited middleware directly on child plugin engine instances. When a Fastify application registers authentication middleware in a parent scope and then registers child plugins with @fastify/middie, the child scope does not inherit the parent middleware. This allows unauthenticated requests to reach routes defined in child plugin scopes, bypassing authentication and authorization checks. Upgrade to @fastify/middie 9.3.2 to fix this issue. There are no workarounds.

(As written by CVE List.)

## Affected

- @fastify/middie @fastify/middie: before 9.3.2 (not affected: 9.3.2)
- @fastify/middie (npm): before 9.3.2
- fastify fastify/middie: before 9.3.2

## Every score

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

## References

- <https://github.com/fastify/fastify-express/security/advisories/GHSA-hrwm-hgmj-7p9c> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/fastify/middie/security/advisories/GHSA-72c6-fx6q-fr5w> (vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6270> (advisory)
- <https://github.com/fastify/middie> (package)

## Sources

- CVE List: [CVE-2026-6270](https://www.cve.org/CVERecord?id=CVE-2026-6270), CVE Terms of Use, modified 2026-04-16
- GitHub Advisory Database: [GHSA-72c6-fx6q-fr5w](https://github.com/advisories/GHSA-72c6-fx6q-fr5w), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-6270](https://nvd.nist.gov/vuln/detail/CVE-2026-6270), Public domain, modified 2026-06-17

---

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