CVE-2026-33808: @fastify/express Authentication Bypass via URL Normalization Gaps

@fastify/express Updated 16 Apr 2026

Summary

16/04/2026
Yes i
Critical
9.1

CVE-2026-33808: @fastify/express v4.0.4 fails to normalize URLs before passing them to Express middleware when Fastify router normalization options are enabled. Affects @fastify/express versions < 4.0.5. Fixed in 4.0.5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The @fastify/express package is a Fastify plugin that allows developers to use Express middleware within Fastify applications. It provides a seamless integration of Express's robust middleware capabilities while benefiting from Fastify's performance and features. However, a vulnerability exists in version 4.0.4 that allows attackers to bypass authentication mechanisms due to improper URL normalization.

Vulnerability Detail

The vulnerability arises from @fastify/express failing to normalize URLs before passing them to Express middleware when certain Fastify router options are enabled. This can lead to a complete bypass of path-scoped authentication middleware. Attackers can exploit this by sending requests with duplicate slashes or semicolon delimiters, which are not correctly handled, allowing unauthorized access to protected routes. The issue is particularly critical as it affects applications relying on Express middleware for authentication, potentially exposing sensitive data and functionalities.

How To Fix

Minimum fixed version

4.0.5

This is the first release that contains the fix.

npm install @fastify/express@4.0.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can manually normalize URLs in your Express middleware before processing requests. Here is an example of how to implement this in your Express middleware:

app.use('/admin', function(req, res, next) {
  req.url = req.url.replace(/\/\//g, '/'); // Normalize duplicate slashes
  req.url = req.url.split(';')[0]; // Strip semicolon-delimited parameters
  next();
});

Conclusion

CVE-2026-33808 represents a significant security risk for applications using @fastify/express version 4.0.4. It is crucial for developers to update to the patched version 4.0.5 to mitigate the risk of authentication bypass and protect sensitive application data.

See every vulnerability recorded for @fastify/express →

Share this vulnerability

FAQ

CVE-2026-33808 is a vulnerability in the @fastify/express package that allows attackers to bypass authentication due to improper URL normalization.

The vulnerability affects @fastify/express version 4.0.4. Versions 4.0.5 and later have been patched.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

If exploited, this vulnerability can lead to unauthorized access to protected routes, exposing sensitive data and functionalities to attackers.

The CVSS score for CVE-2026-33808 is 9.1, indicating a critical level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for @fastify/express.

How To Fix

Minimum fixed version

4.0.5

This is the first release that contains the fix.

npm install @fastify/express@4.0.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback