CVE-2026-22037 in Express products
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 f...
Affects 0 products from 4 vendors. Facts below cite their sources.
Remotely exploitable over the network, high complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-22037 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-277016-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L |
| Published | 2026-01-19 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-177: CWE-177
CWE-288: CWE-288
Related attack patterns (CAPEC)
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-177
CAPEC-72 URL Encoding via CWE-177
CAPEC-120 Double Encoding via CWE-177
CAPEC-127 Directory Indexing via CWE-288
CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-288
Show all 6
CAPEC-468 Generic Cross-Browser Cross-Domain Theft via CWE-177
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A security vulnerability in the @fastify/express plugin prior to version 4.0.3 allows attackers to bypass middleware protections by using URL-encoded characters in the request path.
Attackers can exploit this vulnerability by sending requests with URL-encoded path prefixes that the middleware engine fails to match, thus bypassing intended security measures.
Questions
What is CVE-2026-22037?
A security vulnerability in the @fastify/express plugin prior to version 4.0.3 allows attackers to bypass middleware protections by using URL-encoded characters in the request path.
What is the CVSS score for CVE-2026-22037?
CVE-2026-22037 has CVSS 8.4 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L. EPSS: 0.5%.
Is CVE-2026-22037 actively exploited?
No confirmed active exploitation of CVE-2026-22037 as of 2026-09-25.
How do I remediate CVE-2026-22037?
Priority: HIGH.
What systems are affected by CVE-2026-22037?
CVE-2026-22037 affects Express; Fastify; Full; Plugin.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Express","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.