Advisory

GHSA-v9ww-2j6r-98q6

Also known as: CVE-2026-33804

Summary

@fastify/middie vulnerable to middleware bypass via deprecated ignoreDuplicateSlashes option

Details

Impact

@fastify/middie v9.3.1 and earlier does not read the deprecated (but still functional) top-level ignoreDuplicateSlashes option, only reading from routerOptions. This creates a normalization gap: Fastify's router normalizes duplicate slashes but middie does not, allowing middleware bypass via URLs with duplicate leading slashes (e.g., //admin/secret).

This only affects applications using the deprecated top-level configuration style (fastify({ ignoreDuplicateSlashes: true })). Applications using routerOptions: { ignoreDuplicateSlashes: true } are not affected.

This is distinct from GHSA-8p85-9qpw-fwgw (CVE-2026-2880), which was patched in v9.2.0.

Patches

Upgrade to @fastify/middie >= 9.3.2.

Workarounds

Migrate from deprecated top-level ignoreDuplicateSlashes: true to routerOptions: { ignoreDuplicateSlashes: true }.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-04-16 22:28 UTC
Modified
2026-04-16 22:56 UTC

Affected packages and fixes

@fastify/middie

npm · All systems

Affected

  • introduced 0, fixed 9.3.2 (semver)

Fixed versions

9.3.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences