Live threats

All CVEs / fastify

CVE-2026-22037fastify-express

High 8.4

Priority
50
CVSS 3.1
8.4
EPSS
—
Auth required
Yes
Published
Jan 19, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-177, CWE-288
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for fastify-express.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @fastify/express < 4.0.3 4.0.3 npm install @fastify/express@4.0.3

Per OSV / GitHub Advisories (GHSA-g6q3-96cp-5r5m). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.