Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @fastify/middie
  4. ›
  5. CVE-2026-6270

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

April 16, 2026

@fastify/middie v9.3.1 and earlier incorrectly re-prefixes middleware paths when propagating them to child plugin scopes. When a child plugin is registered with a prefix that overlaps with a parent-scoped middleware path, the middleware path is modified during inheritance and silently fails to match incoming requests.

This results in complete bypass of middleware security controls for all routes defined within affected child plugin scopes, including nested (grandchild) scopes. Authentication, authorization, rate limiting, and any other middleware-based security mechanisms are skipped. No special request crafting or configuration is required.

References

  • cna.openjsf.org/security-advisories.html
  • github.com/advisories/GHSA-72c6-fx6q-fr5w
  • github.com/fastify/fastify-express/security/advisories/GHSA-hrwm-hgmj-7p9c
  • github.com/fastify/middie
  • github.com/fastify/middie/security/advisories/GHSA-72c6-fx6q-fr5w
  • nvd.nist.gov/vuln/detail/CVE-2026-6270

Code Behaviors & Features

Detect and mitigate CVE-2026-6270 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 9.3.2

Fixed versions

  • 9.3.2

Solution

Upgrade to version 9.3.2 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-436: Interpretation Conflict

Source file

npm/@fastify/middie/CVE-2026-6270.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:21 +0000.