CVE-2026-22037 json
@fastify/express vulnerable to Improper Handling of URL Encoding (Hex Encoding)
published 2026-01-19 9 mo ago modified 2026-06-17 4 mo ago also GHSA-g6q3-96cp-5r5m , EUVD-2026-3320
- cvss
- 8.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 28%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @fastify/express 4.0.3
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 9 mo ago
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L |
| GitHub | 3.1 | 8.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @fastify/express | <4.0.3 |
4.0.3 |
Affected products
- fastify fastify-express
Classification
References
-
github.com
/fastify/fastify-express/commit/dc02a3fe1387f945143f22597baa42557d549a40
web
-
github.com
/fastify/fastify-express/security/advisories/GHSA-g6q3-96cp-5r5m
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-22037
advisory
-
github.com
/fastify/fastify-express
package
-
github.com
/fastify/fastify-express/releases/tag/v4.0.3
web
Sources
- CVE List CVE-2026-22037
- GitHub Advisory GHSA-g6q3-96cp-5r5m
- NVD CVE-2026-22037
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.