CVE-2026-112362

Description

A flaw was found in @fastify/express. When duplicate slash normalization is enabled, an unauthenticated remote attacker can bypass security controls, including authentication and authorization, by submitting requests with absolute-form URLs. This discrepancy between route matching and middleware processing allows requests to reach protected endpoint handlers without executing the intended security checks.

Statement

Important severity is assigned to this flaw because unauthenticated remote attackers can bypass authorization and authentication controls on sensitive endpoints. While Fastify applications utilizing @fastify/express are exposed over the network, successful exploitation requires the non-default URL slash normalization setting to be explicitly enabled. Under standard deployments using default server options, routing and middleware synchronization operate normally, reducing the likelihood of widespread default exposure.

Mitigation

To mitigate this vulnerability, ensure that the `ignoreDuplicateSlashes` option in Fastify is set to its default value (`false`). Alternatively, implement authentication, authorization, and rate-limiting controls using native Fastify lifecycle hooks (such as `preHandler`) rather than path-scoped Express middleware, ensuring validation executes after route resolution.

Warning: Applying configuration changes or modifying application lifecycle hooks requires restarting the application service, which will result in temporary service downtime.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7.4N/A9.1
Attack VectorNetworkN/ANetwork
Attack ComplexityHighN/ALow
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityHighN/AHigh
Integrity ImpactHighN/AHigh
Availability ImpactNoneN/ANone

Vector

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

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

Red Hat CVSS v3 Score Explanation

Requires non-default ignoreDuplicateSlashes; RH Important (cf. CVE-2026-33804).

Understanding the Weakness (CWE)

Integrity,Other

Technical Impact: Unexpected State; Varies by Context

Frequently Asked Questions

Want to get errata notifications? Sign up here.