CVE-2026-6556: Vulnerability in fastify\/express

Critical. @fastify/express versions 4.0.6 and earlier only rewrite the plugin prefix for middleware mount paths when the path argument is a string. Non-string mount paths (arrays of paths and regular expressions) are left unprefixed inside prefixed plugin scopes, so middleware registered with those forms does not match the actual prefixed request path. Applications that use path-scoped middleware for authentication,...

CWE-285

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-285
Published
30 Jun 2026
Last change
1 Jul 2026

Affected products

Affected versions and the first fixed release

  • fastify\/express Before 4.0.7. Fixed in 4.0.7

Advisories

Vendor and security advisories

Related