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

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-01-19T16:48:10.994Z
- Modified: 2026-06-17T10:19:24.147Z
- Also known as: GHSA-g6q3-96cp-5r5m
- Weaknesses: CWE-177, CWE-288
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- fastify fastify-express: < 4.0.3
- @fastify/express (npm): before 4.0.3

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L`

## References

- <https://github.com/fastify/fastify-express/security/advisories/GHSA-g6q3-96cp-5r5m> (web)
- <https://github.com/fastify/fastify-express/commit/dc02a3fe1387f945143f22597baa42557d549a40> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22037> (advisory)
- <https://github.com/fastify/fastify-express> (package)
- <https://github.com/fastify/fastify-express/releases/tag/v4.0.3> (web)

## Sources

- CVE List: [CVE-2026-22037](https://www.cve.org/CVERecord?id=CVE-2026-22037), CVE Terms of Use, modified 2026-01-20
- GitHub Advisory Database: [GHSA-g6q3-96cp-5r5m](https://github.com/advisories/GHSA-g6q3-96cp-5r5m), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-22037](https://nvd.nist.gov/vuln/detail/CVE-2026-22037), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22037 · Whole record: https://cve.day/CVE-2026-22037.json · Rebuilt by cve.day 2026-11-25T22:59:12.935Z
