CVE-2026-112362Fastify Express @fastify/express vulnerability
CVSS score
9.1
Critical
CVSS 3.1 from ce714d77-add3-4f53-aff5-83d477b104bb
Exploit probability (EPSS)
0.36%
0.36% chance of exploitation in the next 30 days, higher than 30.9% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
@fastify/express is a Fastify plugin that runs Express middleware inside Fastify. In versions 4.0.5 through 4.0.8, when Fastify runs with the non-default ignoreDuplicateSlashes option enabled, the plugin matches path-scoped Express middleware against a URL whose duplicate-slash normalization has also collapsed the separator after an absolute-form request target's scheme, so Fastify's router resolves the request to the scoped path and runs the handler while the Express layer no longer sees that path. As a result, a request using an absolute-form target can reach a handler on a scoped route such as an admin path while the middleware for authentication, authorization, or rate limiting is skipped. An unauthenticated attacker needs only the non-default ignoreDuplicateSlashes option to be enabled. The issue is fixed in @fastify/express 4.0.9, and users should upgrade to 4.0.9 or later. As a workaround, enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request, or leave ignoreDuplicateSlashes at its default.
Source: NVD · CNA: ce714d77-add3-4f53-aff5-83d477b104bb
How to fix it, step by step
Check whether you're affected
Find every system running @fastify/express and compare its version with the affected versions.
Update to a fixed version
- Update @fastify/express to 4.0.9 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected products
| Affected products | Versions |
|---|---|
| @fastify/express @fastify/express | ≥ 4.0.5, < 4.0.9 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-112362 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-112362?
CVE-2026-112362 has a CVSS 3.1 base score of 9.1 (critical).
Which versions are affected?
Fastify Express @fastify/express (≥ 4.0.5, < 4.0.9)
Is there a patch for CVE-2026-112362?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.