Check out the latest research from IONIX: NEW! State of the WAF Report

New CVE Detected

CVE-2026-112712 – Path-Scoped Middleware Bypass (Authentication/Authorization Bypass) – @fastify/mid

Be the first to know when new zero-days emerge:

Summary

CVE-2026-112712 is a path-scoped middleware bypass (CWE-436, Interpretation Conflict) in @fastify/middie, the Express-style middleware engine for Fastify. Because the middleware mount path can diverge from the path Fastify’s router serves, authentication, authorization and rate-limiting middleware can be skipped while the route handler still runs. The vulnerability is rated Critical (CVSS 9.1).

Technical details

  • Root cause: In versions 9.0.0 through 9.3.5, the use() function joins a path-scoped middleware’s mount path to the plugin scope prefix in a way that can differ from the path Fastify’s router serves. When the two disagree, the middleware does not match, but the route handler does.
  • Trigger conditions:
    • A plugin scope prefix that ends with a forward slash. For example, { prefix: '/api/' } combined with scope.use('/secret', auth) stores the middleware at /api//secret, while the router serves /api/secret.
    • Array-based mount paths, such as use(['/secret'], auth).
    • Mount paths without a leading slash, such as use('secret', auth).
  • Attack vector: Network. An unauthenticated remote attacker sends a normal request to the affected route. No user interaction is required.
  • Impact: Path-scoped middleware (authentication, authorization, rate limiting) is skipped for the affected routes. This exposes protected handlers and can lead to high confidentiality and integrity impact.

Affected software

  • @fastify/middie versions 9.0.0 through 9.3.5

Severity

  • CVSS v3.1 base score: 9.1 (Critical)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Mitigation and recommended actions

  • Immediate: Upgrade @fastify/middie to 9.3.6 or later.
  • Workaround if you cannot patch immediately: Implement authentication and authorization with Fastify hooks, such as preHandler, instead of path-scoped middleware. These hooks run after the router has resolved the request.
  • Review plugin registrations that use a scope prefix ending in /, array mount paths, or mount paths without a leading slash. Verify that protected routes cannot be reached without the intended checks.

References

Get a free Attack Surface scan to see if you’re exposed.

Get a free Attack Surface scan to see if you’re exposed.

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge