8.4

CVE-2026-22037: @fastify/express vulnerable to Improper Handling of URL Encoding (Hex Encoding)

Deferred
AliasesGHSA-g6q3-96cp-5r5m
Published 19-01-2026Last modified 20-01-2026

Vulnerability summary

CVE-2026-22037 is a high (CVSS 8.4) vulnerability in fastify fastify-express. EPSS estimates a 0.35% chance of exploitation in the next 30 days, higher than 30.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.4/10
010
High · v3.1 (CVE.org)
EPSS score
0.35%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 19-01-2026
    PublishedVulnerability first disclosed.
  2. 20-01-2026
    Last modifiedVulnerability information updated.

Description

The @fastify/express plugin adds full Express compatibility to Fastify. A security vulnerability exists in @fastify/express prior to version 4.0.3 where middleware registered with a specific path prefix can be bypassed using URL-encoded characters (e.g., `/%61dmin` instead of `/admin`). While the middleware engine fails to match the encoded path and skips execution, the underlying Fastify router correctly decodes the path and matches the route handler, allowing attackers to access protected endpoints without the middleware constraints. The vulnerability is caused by how @fastify/express matches requests against registered middleware paths. This vulnerability is similar to, but differs from, CVE-2026-22031 because this is a different npm module with its own code. Version 4.0.3 of @fastify/express contains a patch fort the issue.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.35%

Chance of exploitation in the next 30 days

Percentile

31%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.35% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

@fastify1 product
  • express< 4.0.3
Fastify1 product

2 vendors · 2 products

References

5 links