@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.
Casky was already ahead
This CVE exploits attack patterns that Casky's 0matched skills already investigate — long before this vulnerability was disclosed. Claude's reasoning model maps these techniques to MITRE ATT&CK, so practitioners who ran these skills have already seen the threat behaviour in their findings.
CVE-2026-85184 is a critical authentication and authorization bypass vulnerability in @fastify/middie versions 9.1.0 through 9.3.3. The flaw exploits a divergence in how middleware and routing layers parse HTTP request targets: middleware evaluates the raw absolute-form request target (e.g., http://example.com/path), while the Fastify router normalizes it to a relative path before dispatching. Attackers can craft requests using absolute-form targets to reach protected route handlers while circumventing path-scoped security controls like authentication and authorization middleware. This affects any application using vulnerable versions of @fastify/middie without proper upgrade, potentially exposing sensitive endpoints to unauthenticated access.
While this CVE currently maps to zero explicit MITRE ATT&CK techniques, Casky's AI-driven security skills would identify this as an instance of improper input validation and inconsistent security enforcement—classic precursors to T1550 (Use Alternate Authentication Material) and T1548 (Abuse Elevation Control Mechanism) patterns. Practitioners leveraging Casky would observe findings related to authentication bypass detection, middleware configuration anomalies, and HTTP request parsing inconsistencies in their security posture. Extended reasoning capabilities would surface the root cause: the semantic gap between how different application layers interpret the same request, enabling attackers to evade intended security checks. Security teams would be alerted to review middleware configurations, implement input normalization validation, and audit request handling logic across routing and middleware layers.
Composite risk scoring from EPSS, CISA KEV, Shodan, and GreyNoise — 21 security APIs correlated into a single Casky Risk Score. Coming in Casky Pro. Join early access →
Casky has 0 skills that investigate the attack patterns behind CVE-2026-85184. Run one and get CVSS-scored findings in 3 minutes.
Run the skill that detects this →© 2026 Casky.AI, Inc. · AI Security Investigation