Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
High

Authentication/Authorization Bypass in @fastify/middie Path-Scoped Middleware

IdentifiersCVE-2026-2880CWE-20· Improper Input Validation

CVE-2026-2880 is an improper path normalization vulnerability in the Node.js package @fastify/middie affecting versions prior to 9.2.0. The issue occurs when applications use path-scoped middleware, such as app.use('/secret', auth), and Fastify router normalization options are enabled. Under combinations of normalization behaviors including ignoreDuplicateSlashes, useSemicolonDelimiter, and related trailing-slash handling, crafted request paths can be interpreted differently by middleware matching versus route resolution. As a result, middleware-based authentication or authorization checks may be skipped while the request is still routed to the intended protected handler.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

A remote attacker can bypass middleware-enforced authentication and authorization controls for protected routes. Successful exploitation may allow unauthorized access to endpoints and any data or actions exposed by those handlers. Based on the provided content, the primary security consequence is integrity impact through unauthorized access to protected application functionality, with potential secondary data exposure depending on what the protected routes return.

Mitigation

If you can’t patch tonight, do this now.

Do not rely solely on path-scoped @fastify/middie middleware for access control until the package is upgraded. Enforce authentication and authorization at the route or handler level, or in hooks that execute after routing normalization. Where operationally feasible, disable router normalization combinations that can create canonicalization drift between middleware matching and route handling, including ignoreDuplicateSlashes, useSemicolonDelimiter, and related trailing-slash behaviors.

Remediation

Patch, then assume compromise.

Upgrade @fastify/middie to version 9.2.0 or later. The provided advisory states the issue is fixed in 9.2.0.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Fastify@Fastify/Middieapplication
FastifyFastify/Middieapplication
Openjsf@Fastify/Middieapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity3

Community discussion across Reddit, Mastodon, and other social sources.