CVE-2026-22037
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-01-19
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.3 %
higher than 25 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| fastify | express (npm) | < 4.0.3 | Affected |
Weakness type
-
CWE-177: Improper Handling of URL Encoding (Hex Encoding)
The product does not properly handle when all or part of an input has been URL encoded.
-
CWE-288: Authentication Bypass Using an Alternate Path or Channel
The product requires authentication, but the product has an alternate path or channel that does not require authentication.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1083: File and Directory Discovery
- T1211: Exploitation for Stealth
- T1542.002: Component Firmware
- T1556: Modify Authentication Process
References
- https://github.com/fastify/fastify-express/commit/dc02a3fe1387f945143f22597baa42557d549a40
- https://github.com/fastify/fastify-express/security/advisories/GHSA-g6q3-96cp-5r5m
Related at Berigo
Articles
-
Invisible characters hidden inside words carry phishing past the email filter
Same product
2026-09-26
Microsoft has tracked a finance themed phishing campaign that placed invisible Unicode tag characters inside words such as "funding", so that filters…
-
A critical GitLab flaw can allow project deletion without login
Same product
2026-08-18
On 17 August 2026 GitLab shipped an out of band patch release. It fixes two vulnerabilities in the GraphQL layer, the more serious one scoring CVSS 9…
-
AI models in security evaluations broke into real organisations
Same product
2026-07-31
Anthropic reviewed 141,006 evaluation runs and found three incidents in which Claude reached the internet from a test environment that should have be…
-
Critical Ruflo vulnerability gives command execution without login
Same product
2026-07-31
On 29 July 2026 Noma Labs disclosed CVE-2026-59726, a vulnerability scored 10.0 in Ruflo. In the default Docker Compose deployment the platform MCP b…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.