Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-22037

HIGH 8.4EPSS 37%

@fastify/express vulnerable to Improper Handling of URL Encoding (Hex Encoding)

Also known as GHSA-g6q3-96cp-5r5m

Mitigation

  • Upgrade @fastify/express to 4.0.3 or later.

Who should check

  • Projects that depend on npm package @fastify/express (< 4.0.3)
  • Anyone running fastify-express < 4.0.3

Vulnerability facts

Affected
@fastify/express < 4.0.3
Fixed in
4.0.3
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
8.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: Low
EPSS
0.51% chance of exploitation in 30 days (percentile 37, 2026-11-26)
CWE
CWE-177, CWE-288
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm @fastify/express< 4.0.34.0.3osv
fastify-express< 4.0.3—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-22037. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-22037.md
Affected: @fastify/express < 4.0.3
Fixed in: 4.0.3

Steps:
1. Search this machine and project for @fastify/express (npm), fastify-express: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-22037 being exploited?

There is no confirmed exploitation: CVE-2026-22037 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.51% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-22037?

High: CVSS 8.4 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2026-22037?

@fastify/express < 4.0.3.

Is there a fix for CVE-2026-22037?

Yes. Fixed in 4.0.3. Upgrade @fastify/express to 4.0.3 or later.

How do I check if I'm affected by CVE-2026-22037?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors