CVE-2026-22037CWE-177CWE-288

@fastify/express vulnerable to Improper Handling of URL Encoding (Hex Encoding)

High · published January 19, 2026

CVSS v3.1
8.4
EPSS
0%
Percentile
27.3
In the wild
Unconfirmed
What it is

⚡ A sneaky URL-encoded character can bypass middleware in @fastify/express versions before 4.0.3, allowing attackers to slip right into sensitive areas of your application! 🚨 Think of it like a restaurant where the front staff only checks the name on a reservation. If someone sneaks in with a cleverly altered booking name, they could access the exclusive VIP section without a second glance! This vulnerability could lead to unauthorized access to protected endpoints, allowing attackers to interact with sensitive data or functions they shouldn’t be touching at all. Imagine an intruder walking into the back office of a store, completely bypassing security measures — absolutely devastating for any application relying on proper authentication.

Put simply

Think of it like a restaurant where the front staff only checks the name on a reservation. If someone sneaks in with a cleverly altered booking name, they could access the exclusive VIP section without a second glance! The vulnerability arises because the @fastify/express plugin fails to match URL-encoded paths against registered middleware, allowing requests like `/%61dmin` to bypass security checks and reach restricted routes.

What to do

This vulnerability could lead to unauthorized access to protected endpoints, allowing attackers to interact with sensitive data or functions they shouldn’t be touching at all. Imagine an intruder walking into the back office of a store, completely bypassing security measures — absolutely devastating for any application relying on proper authentication. Update @fastify/express to version 4.0.3 immediately to resolve this issue. Additionally, review your routing and middleware configurations to ensure they handle URL-encoded characters appropriately. Regularly check for library updates to stay secure. You've got this! Following these steps will help lock down your application and keep the intruders at bay. 🛡️

The record
Technical detail
CVSS v3.1
8.4 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00349 · 27.3th percentile
Weaknesses
CWE-177 · Improper Handling of URL Encoding (Hex Encoding); CWE-288 · Authentication Bypass Using an Alternate Path or Channel
Published
2026-01-19T16:48Z
EPSS history
Timeline
  • 19 JAN 16:48Z
    @fastify/express vulnerable to Improper Handling of URL Encoding (Hex Encoding)
    cvelistv5